From 50f6272e0f744a61be78ca82d7730ab97fc00ef8 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 c0d031310..03a8c8bf6 100644 --- a/lib/devos/devosSystem.nix +++ b/lib/devos/devosSystem.nix @@ -26,6 +26,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;