config: move home-manager-specific config to hostSpecificModule

This commit is contained in:
Gabriel Arazas 2024-01-07 18:23:55 +08:00
parent 5173add1f6
commit fa65ce548a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -183,11 +183,6 @@
# have to go with it. # have to go with it.
i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; 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. # Enabling some things for sops.
programs.gnupg.agent = lib.mkDefault { programs.gnupg.agent = lib.mkDefault {
enable = true; enable = true;
@ -329,6 +324,11 @@
{ {
networking.hostName = lib.mkForce metadata.hostname or host; networking.hostName = lib.mkForce metadata.hostname or host;
nixpkgs.hostPlatform = metadata._system; 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) (lib.mkIf (metadata ? domain)