hive.nix: Add sources to arguments and add default secret sources

This commit is contained in:
Tom Hubrecht 2023-06-30 18:38:53 +02:00
parent 91e8fc2ce4
commit 12e959664f

View file

@ -11,6 +11,9 @@ let
"_hardware-configuration.nix"
];
# Include default secrets
dgn-secrets.sources = [ ./machines/${node}/secrets ];
# Deployment config is specified in meta.nodes.${node}.deployment
inherit (metadata.nodes.${node}) deployment;
};
@ -28,7 +31,7 @@ in
meta = {
nodeNixpkgs = lib.mapSingleFuse mkNixpkgs nodes;
specialArgs = { meta = metadata; };
specialArgs = { inherit sources; meta = metadata; };
nodeSpecialArgs = lib.mapSingleFuse mkArgs nodes;