refactor: unify home-manager config

This commit is contained in:
Kat Inskip 2022-07-17 18:14:11 -07:00
parent 3f5e8514f3
commit cedfad483a
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 17 additions and 39 deletions

View file

@ -1,17 +0,0 @@
{ meta, config, inputs, tf, lib, ... }: with lib; {
options.home-manager.users = mkOption {
type = types.attrsOf (types.submoduleWith {
modules = singleton meta.modules.home;
specialArgs = {
inherit inputs tf meta;
nixos = config;
};
});
};
config = {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
};
};
}

View file

@ -1,22 +0,0 @@
{ meta, config, lib, inputs, tf, ... }:
with lib;
{
options.home-manager.users = mkOption {
type = types.attrsOf (types.submoduleWith {
modules = singleton meta.modules.home;
specialArgs = {
inherit inputs tf meta;
nixos = config;
};
});
};
config = {
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
};
};
}

17
system/home.nix Normal file
View file

@ -0,0 +1,17 @@
{ meta, config, lib, inputs, tf, ... }:
with lib;
{
home-manager = {
extraSpecialArgs = {
inherit inputs tf meta;
nixos = config;
};
sharedModules = [
meta.modules.home
];
useUserPackages = true;
useGlobalPkgs = true;
};
}