Import age ssh keys by default

This commit is contained in:
Janne Heß 2021-08-28 12:37:10 +02:00
parent 44d91e885e
commit 4568162629
No known key found for this signature in database
GPG key ID: 69165158F05265DF
2 changed files with 9 additions and 10 deletions

View file

@ -47,8 +47,12 @@
name = "sops-age-ssh-keys";
machine = {
imports = [ ../../modules/sops ];
services.openssh.enable = true;
services.openssh.hostKeys = [{
type = "ed25519";
path = ./test-assets/ssh-ed25519-key;
}];
sops = {
age.sshKeyPaths = [ ./test-assets/ssh-ed25519-key ];
defaultSopsFile = ./test-assets/secrets.yaml;
secrets.test_key = {};
};