From 26a2423312fccdbc4899506f91e2c084e7899aec Mon Sep 17 00:00:00 2001 From: David Arnold Date: Fri, 9 Jul 2021 10:17:05 -0500 Subject: [PATCH] ref: make hm common module explicit --- modules/customBuilds.nix | 15 --------------- modules/hm-system-defaults.nix | 11 +++++++++++ 2 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 modules/hm-system-defaults.nix diff --git a/modules/customBuilds.nix b/modules/customBuilds.nix index cbaefe3..d7757c6 100644 --- a/modules/customBuilds.nix +++ b/modules/customBuilds.nix @@ -7,20 +7,5 @@ fullHostConfig = config; }) ).config.system.build.isoImage; - - homes = (config.lib.digga.mkBuild - ({ config, ... }: { - home-manager.useUserPackages = lib.mkForce false; - home-manager.sharedModules = [ - { - home.sessionVariables = { - inherit (config.environment.sessionVariables) NIX_PATH; - }; - xdg.configFile."nix/registry.json".text = - config.environment.etc."nix/registry.json".text; - } - ]; - }) - ).config.home-manager.users; }; } diff --git a/modules/hm-system-defaults.nix b/modules/hm-system-defaults.nix new file mode 100644 index 0000000..7b442a6 --- /dev/null +++ b/modules/hm-system-defaults.nix @@ -0,0 +1,11 @@ +{ config, ... }: { + home-manager.sharedModules = [ + { + home.sessionVariables = { + inherit (config.environment.sessionVariables) NIX_PATH; + }; + xdg.configFile."nix/registry.json".text = + config.environment.etc."nix/registry.json".text; + } + ]; +}