Push an ugly dumb hm standardization
This commit is contained in:
parent
af605502d0
commit
f50b90ba94
1 changed files with 11 additions and 11 deletions
18
flake.nix
18
flake.nix
|
@ -56,10 +56,10 @@
|
|||
modules = [ (./hosts + "/${name}") ];
|
||||
specialArgs = inputs;
|
||||
};
|
||||
mkHome = channel: modules: hm.lib.homeManagerConfiguration {
|
||||
inherit modules;
|
||||
mkHome = extraModules: hm.lib.homeManagerConfiguration {
|
||||
modules = [ ./modules/home ] ++ extraModules;
|
||||
extraSpecialArgs = inputs;
|
||||
pkgs = builtins.getAttr system channel.legacyPackages;
|
||||
pkgs = builtins.getAttr system stable.legacyPackages;
|
||||
};
|
||||
|
||||
hostChannels = {
|
||||
|
@ -77,14 +77,14 @@
|
|||
nixosConfigurations = builtins.mapAttrs (name: channel: mkNix name channel) hostChannels;
|
||||
|
||||
homeConfigurations = {
|
||||
default = mkHome stable [ ./modules/home ];
|
||||
full = mkHome stable [
|
||||
./modules/home
|
||||
{
|
||||
default = mkHome [ ];
|
||||
desktop = mkHome [{ home.guifull.enable = true; }];
|
||||
|
||||
generic = mkHome [{ targets.genericLinux.enable = true; }];
|
||||
genericDesktop = mkHome [{
|
||||
home.guifull.enable = true;
|
||||
targets.genericLinux.enable = true;
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue