Skip to content

Commit

Permalink
propagate packages, NIX_PATH, and registry from host to hm-only config
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Mar 20, 2021
1 parent 4be6fb6 commit b1c3552
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/devos/devosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1c3552

Please sign in to comment.