services specialArg stage 1

This commit is contained in:
kat witch 2021-08-06 23:11:46 +01:00
parent aef9c37ee6
commit 3c9475cdcf
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
30 changed files with 14 additions and 103 deletions

View file

@ -5,6 +5,14 @@ let
sourceCache = import ./cache.nix {
inherit sources lib;
};
publicServices = lib.modList {
modulesDir = ./config/services;
};
privateServices-base = lib.mkIf (builtins.pathExists ./config/trusted/services) (lib.modList {
modulesDir = ./config/trusted/services;
});
privateServices = privateServices-base.content;
services = lib.modListMerge publicServices privateServices;
profiles = lib.modList {
modulesDir = ./config/profiles;
};
@ -34,7 +42,7 @@ let
./config/modules/meta/default.nix
] ++ map (hostName: ./config/hosts + "/${hostName}/meta.nix") hostNames;
specialArgs = {
inherit sources profiles users;
inherit sources profiles users services;
};
};
inherit (eval) config;