nixos/containers: Fix agenix being broken with no dev key

This commit is contained in:
2022-06-11 01:33:56 +01:00
parent 106698b53e
commit 58b2c6d8c5
2 changed files with 2 additions and 1 deletions

View File

@@ -265,6 +265,7 @@ in
};
# age requires all keys to at least exist, even if they're not going to be used
agenixMountSecrets.deps = [ "ensureDevKey" ];
ensureDevKey.text =
''
[ ! -e "${devVMKeyPath}" ] && touch "${devVMKeyPath}"