Import age keyfile and ssh keys at the same time

This commit is contained in:
Janne Heß 2021-09-30 15:06:06 +02:00
parent a3e3dc7710
commit 5db02f2939
No known key found for this signature in database
GPG key ID: 69165158F05265DF
2 changed files with 31 additions and 17 deletions

View file

@ -140,7 +140,6 @@ in {
example = "/var/lib/sops-nix/key.txt";
description = ''
Path to age key file used for sops decryption.
Setting this to a non-null value causes the ssh keys to be ignored.
'';
};
@ -159,7 +158,6 @@ in {
default = if config.services.openssh.enable then map (e: e.path) (lib.filter (e: e.type == "ed25519") config.services.openssh.hostKeys) else [];
description = ''
Paths to ssh keys added as age keys during sops description.
This setting is ignored when the keyFile is set to a non-null value.
'';
};
};