diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index 4f29280..b92c3e5 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -14,6 +14,7 @@ ./home-manager.nix ../../modules/base.nix ../../modules/programs.nix + ../../modules/gnome-extensions.nix ../../modules/git.nix ../../modules/zsh.nix ../../modules/print-and-scan.nix diff --git a/hosts/yodaTab/home-manager.nix b/hosts/yodaTab/home-manager.nix index b491396..501751a 100644 --- a/hosts/yodaTab/home-manager.nix +++ b/hosts/yodaTab/home-manager.nix @@ -7,6 +7,7 @@ in imports = [ (import "${home-manager}/nixos") ../../modules/base.home.nix + ../../modules/gnome-extensions.home.nix ../../modules/git.home.nix ../../modules/zsh.home.nix # TODO diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 8123624..58c6fca 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -14,6 +14,7 @@ ./home-manager.nix ../../modules/base.nix ../../modules/programs.nix + ../../modules/gnome-extensions.nix ../../modules/git.nix ../../modules/zsh.nix ../../modules/print-and-scan.nix diff --git a/hosts/yodaTux/home-manager.nix b/hosts/yodaTux/home-manager.nix index b491396..501751a 100644 --- a/hosts/yodaTux/home-manager.nix +++ b/hosts/yodaTux/home-manager.nix @@ -7,6 +7,7 @@ in imports = [ (import "${home-manager}/nixos") ../../modules/base.home.nix + ../../modules/gnome-extensions.home.nix ../../modules/git.home.nix ../../modules/zsh.home.nix # TODO diff --git a/modules/base.home.nix b/modules/base.home.nix index 24e8d5e..7f1d574 100644 --- a/modules/base.home.nix +++ b/modules/base.home.nix @@ -1,9 +1,6 @@ { config, pkgs, ... }: { - /* Enable home-manager to configure GNOME */ - programs.dconf.enable = true; - home-manager.users.yoda = { /* The home.stateVersion option does not have a default and must be set */ /* https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion */ diff --git a/modules/git.nix b/modules/git.nix index 6eff571..03114d5 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -2,8 +2,8 @@ { users.users.yoda = { - packages = with pkgs; [ - git - ]; + packages = with pkgs; [ + git + ]; }; } diff --git a/modules/gnome-extensions.home.nix b/modules/gnome-extensions.home.nix new file mode 100644 index 0000000..d4113b9 --- /dev/null +++ b/modules/gnome-extensions.home.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: + +{ + /* Enable home-manager to configure GNOME */ + programs.dconf.enable = true; + + home-manager.users.yoda = { + + dconf.settings = { + # Enable GNOME extensions. + "org/gnome/shell".enabled-extensions = [ pkgs.gnomeExtensions.caffeine.extensionUuid ]; + }; + + }; +} diff --git a/modules/gnome-extensions.nix b/modules/gnome-extensions.nix new file mode 100644 index 0000000..25359d9 --- /dev/null +++ b/modules/gnome-extensions.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + users.users.yoda = { + packages = with pkgs; [ + gnomeExtensions.caffeine + ]; + }; +} diff --git a/modules/programs.nix b/modules/programs.nix index 2153d9d..b781690 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -35,6 +35,7 @@ # Graphical Apps gnome.gnome-tweaks + gnome.dconf-editor firefox tor-browser-bundle-bin thunderbird # email