update secret file, add secret test to config.nix

This commit is contained in:
2025-04-17 10:56:14 -05:00
parent 373437b909
commit 872bcfb683
2 changed files with 9 additions and 8 deletions
+6 -2
View File
@@ -13,11 +13,15 @@
defaultSopsFile = ./secrets/build.json;
defaultSopsFormat = "json";
secrets."nixos-homelab-00" = { };
secrets."clusterPassword" = { };
};
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
environment.variable = {
SECRETKEY = "${config.sops.secrets."clusterPassword".path}";
};
# Grub Boot Loader Setup
boot.loader.grub = {
enable = true;