hive.nix: Add sources to arguments and add default secret sources
This commit is contained in:
parent
91e8fc2ce4
commit
12e959664f
1 changed files with 4 additions and 1 deletions
5
hive.nix
5
hive.nix
|
@ -11,6 +11,9 @@ let
|
||||||
"_hardware-configuration.nix"
|
"_hardware-configuration.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Include default secrets
|
||||||
|
dgn-secrets.sources = [ ./machines/${node}/secrets ];
|
||||||
|
|
||||||
# Deployment config is specified in meta.nodes.${node}.deployment
|
# Deployment config is specified in meta.nodes.${node}.deployment
|
||||||
inherit (metadata.nodes.${node}) deployment;
|
inherit (metadata.nodes.${node}) deployment;
|
||||||
};
|
};
|
||||||
|
@ -28,7 +31,7 @@ in
|
||||||
meta = {
|
meta = {
|
||||||
nodeNixpkgs = lib.mapSingleFuse mkNixpkgs nodes;
|
nodeNixpkgs = lib.mapSingleFuse mkNixpkgs nodes;
|
||||||
|
|
||||||
specialArgs = { meta = metadata; };
|
specialArgs = { inherit sources; meta = metadata; };
|
||||||
|
|
||||||
nodeSpecialArgs = lib.mapSingleFuse mkArgs nodes;
|
nodeSpecialArgs = lib.mapSingleFuse mkArgs nodes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue