mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
services specialArg stage 1
This commit is contained in:
parent
aef9c37ee6
commit
3c9475cdcf
30 changed files with 14 additions and 103 deletions
10
default.nix
10
default.nix
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue