From 94d5206f439a847c3cba6abd791761864c4c3128 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 5 Sep 2023 16:20:15 +0200 Subject: [PATCH] GNOME extensions --- hosts/yodaTab/configuration.nix | 1 + hosts/yodaTab/home-manager.nix | 1 + hosts/yodaTux/configuration.nix | 1 + hosts/yodaTux/home-manager.nix | 1 + modules/base.home.nix | 3 --- modules/git.nix | 6 +++--- modules/gnome-extensions.home.nix | 15 +++++++++++++++ modules/gnome-extensions.nix | 9 +++++++++ modules/programs.nix | 1 + 9 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 modules/gnome-extensions.home.nix create mode 100644 modules/gnome-extensions.nix 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