From fa65ce548a01adc891ac65671c13e63666e046a5 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 7 Jan 2024 18:23:55 +0800 Subject: [PATCH] config: move home-manager-specific config to `hostSpecificModule` --- flake.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 19b2a860..90bf863c 100644 --- a/flake.nix +++ b/flake.nix @@ -183,11 +183,6 @@ # have to go with it. i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; - # The global configuration for the home-manager module. - home-manager.useUserPackages = lib.mkDefault true; - home-manager.useGlobalPkgs = lib.mkDefault true; - home-manager.sharedModules = [ userSharedConfig ]; - # Enabling some things for sops. programs.gnupg.agent = lib.mkDefault { enable = true; @@ -329,6 +324,11 @@ { networking.hostName = lib.mkForce metadata.hostname or host; nixpkgs.hostPlatform = metadata._system; + + # The global configuration for the home-manager module. + home-manager.useUserPackages = lib.mkDefault true; + home-manager.useGlobalPkgs = lib.mkDefault true; + home-manager.sharedModules = [ userSharedConfig ]; } (lib.mkIf (metadata ? domain)