Gnome: install firefox gnome theme

This commit is contained in:
Toast 2024-09-19 12:48:34 +02:00
parent c3ee394131
commit b061708ce7
2 changed files with 23 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{...}: {
imports = [
./blackbox.nix
./firefox.nix
];
}

View file

@ -0,0 +1,22 @@
{pkgs, ...}: let
firefox-gnome-theme = pkgs.fetchFromGitHub {
owner = "rafaelmardojai";
repo = "firefox-gnome-theme";
rev = "v129";
hash = "sha256-MOE9NeU2i6Ws1GhGmppMnjOHkNLl2MQMJmGhaMzdoJM=";
};
profile-location = ".mozilla/firefox/jdnxpg97.temp";
in {
home-manager.users.toast = {
programs.firefox = {
enableGnomeExtensions = true;
};
home.file."${profile-location}/chrome".source = firefox-gnome-theme;
};
programs.firefox = {
autoConfig = ''
lockPref("toolkit.legacyUserProfileCustomizations.stylesheets",true);
lockPref("svg.context-properties.content.enabled",true);
'';
};
}