From c7d06a8cf3d7fe10e19f1213ae364cb5bcd45054 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 3 May 2024 14:04:14 +0200 Subject: [PATCH] Infer `sopsPasswordOverride` enablement --- lib/modules/custom-sops-nix.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/custom-sops-nix.nix b/lib/modules/custom-sops-nix.nix index d35aa7a..176a2c8 100644 --- a/lib/modules/custom-sops-nix.nix +++ b/lib/modules/custom-sops-nix.nix @@ -36,7 +36,7 @@ # Override passwords backed by `sops-nix` as `nixos-rebuild build-vm-with-bootloader` # does not seem to play along well with `sops-nix` users.sopsPasswordOverride = lib.mkIf overrideSops { - enable = lib.mkDefault true; + enable = lib.mkDefault overrideSops; password = lib.mkDefault "admin"; };