From 2cdfa176d5acfbc3caede8e2ee5462a61e459737 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 5 Sep 2023 16:23:31 +0200 Subject: [PATCH] refactor --- hosts/yodaTab/configuration.nix | 1 - hosts/yodaTux/configuration.nix | 1 - modules/gnome-extensions.home.nix | 9 ++++++--- modules/gnome-extensions.nix | 9 --------- 4 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 modules/gnome-extensions.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index b92c3e5..4f29280 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -14,7 +14,6 @@ ./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/configuration.nix b/hosts/yodaTux/configuration.nix index 58c6fca..8123624 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -14,7 +14,6 @@ ./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/modules/gnome-extensions.home.nix b/modules/gnome-extensions.home.nix index d4113b9..2a788ee 100644 --- a/modules/gnome-extensions.home.nix +++ b/modules/gnome-extensions.home.nix @@ -1,15 +1,18 @@ { config, pkgs, ... }: { - /* Enable home-manager to configure GNOME */ + users.users.yoda = { + packages = with pkgs; [ + gnomeExtensions.caffeine + ]; + }; + 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 deleted file mode 100644 index 25359d9..0000000 --- a/modules/gnome-extensions.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, pkgs, ... }: - -{ - users.users.yoda = { - packages = with pkgs; [ - gnomeExtensions.caffeine - ]; - }; -}