ark/modules/base/hm-system-defaults.nix
2022-07-30 03:04:32 +03:00

18 lines
576 B
Nix

{
config,
inputs,
...
}: {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules = [
{
home.sessionVariables = {inherit (config.environment.sessionVariables) NIX_PATH;};
xdg.configFile."nix/registry.json".text = config.environment.etc."nix/registry.json".text;
xdg.configFile."nix/nix.conf".source = config.environment.etc."nix/nix.conf".source;
xdg.configFile."nix/netrc".source = config.environment.etc."nix/netrc".source;
}
];
home-manager.extraSpecialArgs = {inherit inputs;};
}