Infer sopsPasswordOverride enablement

This commit is contained in:
Manuel Thalmann 2024-05-03 14:04:14 +02:00
parent 7fcfd7ecb5
commit c7d06a8cf3

View file

@ -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";
};