From 26f6357a15e8d110391a7ea1f635a8d2d8f2db8f Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Sun, 14 Mar 2021 17:16:36 -0700 Subject: [PATCH] propagate packages, NIX_PATH, and registry from host to hm-only config --- lib/devos/devosSystem.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/devos/devosSystem.nix b/lib/devos/devosSystem.nix index 8f6493eb5..f57f527c4 100644 --- a/lib/devos/devosSystem.nix +++ b/lib/devos/devosSystem.nix @@ -63,6 +63,16 @@ lib.nixosSystem (args // { modules = modules ++ [ ({ config, ... }: { home-manager.useUserPackages = lib.mkForce false; + home-manager.sharedModules = [ + { + home.packages = config.environment.systemPackages; + home.sessionVariables = { + inherit (config.environment.sessionVariables) NIX_PATH; + }; + xdg.configFile."nix/registry.json".text = + config.environment.etc."nix/registry.json".text; + } + ]; }) ]; })).config;