test first time secret generation

This commit is contained in:
2025-04-29 21:37:31 -05:00
parent ba258962ff
commit 5a900f5f1b
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -29,6 +29,7 @@ in
# I prefer to use json format for the secrets
defaultSopsFormat = "json";
# Define file and key for each secret
secrets = {
"clusterPassword" = {
sopsFile = ./secrets/build.json;
@@ -45,12 +46,12 @@ in
};
};
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
environment.variables = {
SECRETKEY = "${config.sops.secrets."clusterPassword".path}";
LEAKYKEY = builtins.readFile config.sops.secrets."clusterPassword".path;
};
systemd.user.services.mbsync.unitConfig.After = [ "sops-nix.service" ];
# set up DNS with nginx
security.acme = {
acceptTerms = true;