Added firefox.nix

This commit is contained in:
Nicole 2026-04-29 13:51:29 +02:00
parent a620e25441
commit 476873d98d
3 changed files with 49 additions and 1 deletions

View file

@ -0,0 +1,43 @@
{ config
, pkgs
, lib
, ...
}:
let
darkreaderHost = pkgs.runCommand "darkreader-host" {} ''
mkdir -p $out/bin
${pkgs.gcc}/bin/gcc -O2 -o $out/bin/darkreader ${./files/coloreader-native.c}
'';
darkreaderManifest = {
name = "darkreader";
description = "custom darkreader native host for syncing with pywal";
path = "${darkreaderHost}/bin/darkreader";
type = "stdio";
};
in
{
config.home.file = {
".mozilla/native-messaging-hosts/darkreader.json".text = builtins.toJSON
(darkreaderManifest // { allowed_extensions = [ "darkreader@alexhulbert.com" ]; });
};
config.home.activation.firefoxWalTheme = lib.hm.dag.entryAfter ["writeBoundary"] ''
ln -sf "${config.xdg.cacheHome}/wal/userContent.css" \
"${config.home.homeDirectory}/.mozilla/firefox/default/chrome/userContent.css"
'';
config.programs.firefox = {
enable = false;
profiles.default = {
id = 0;
name = "default";
isDefault = true;
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
userChrome = ''
@import url('userContent.css');
'';
};
};
}

View file

@ -53,3 +53,8 @@ output_path = "~/.config/Mailspring/packages/Matugen/styles/ui-variables.less"
[templates.millennium] [templates.millennium]
input_path = "~/.config/matugen/templates/millennium-material-matugen.css" input_path = "~/.config/matugen/templates/millennium-material-matugen.css"
output_path = '~/.steam/steam/steamui/skins/Material-Theme/css/main/colors/matugen.css' output_path = '~/.steam/steam/steamui/skins/Material-Theme/css/main/colors/matugen.css'
[templates.spotify]
input_path = '~/.config/matugen/templates/spicetify.ini'
output_path = '~/.config/spicetify/Themes/Sleek/color.ini'
post_hook = 'spicetify watch -s 2>&1 | sed "/Reloaded Spotify/q"'

View file

@ -276,8 +276,8 @@ window-rule {
match app-id=r#"^org\.gnome\.Nautilus$"# match app-id=r#"^org\.gnome\.Nautilus$"#
match app-id="fsearch" match app-id="fsearch"
match app-id="feishin" match app-id="feishin"
match app-id="spotify"
match app-id="MstyStudio" match app-id="MstyStudio"
} }
window-rule { window-rule {