From 12e959664f50f41b7a6bc7b4483ab9db5da0b37a Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Fri, 30 Jun 2023 18:38:53 +0200 Subject: [PATCH] hive.nix: Add sources to arguments and add default secret sources --- hive.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hive.nix b/hive.nix index 6de1f2c..318fac3 100644 --- a/hive.nix +++ b/hive.nix @@ -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;