targets modList

This commit is contained in:
kat witch 2021-08-06 04:22:18 +01:00
parent a32630fd2d
commit e5a0fe456c
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 5 additions and 9 deletions

View file

@ -1,8 +0,0 @@
{ ... }:
{
imports = [
./personal
./infra
];
}

View file

@ -8,6 +8,9 @@ let
profiles = lib.modList {
modulesDir = ./config/profiles;
};
targets = lib.removeAttrs (lib.modList {
modulesDir = ./config/targets;
}) ["common"];
users = lib.modList {
modulesDir = ./config/users;
};
@ -26,7 +29,8 @@ let
eval = lib.evalModules {
modules = [
metaConfig
./config/targets
targets.personal
targets.infra
./config/modules/meta/default.nix
] ++ map (hostName: ./config/hosts + "/${hostName}/meta.nix") hostNames;
specialArgs = {