Change authorized keys installation

This commit is contained in:
Charlotte Van Petegem 2022-03-04 13:39:36 +01:00
parent 6c556a3156
commit d07c6ffeb2
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -10,12 +10,17 @@
{ bits = 4096; path = "${config.chvp.dataPrefix}/etc/ssh/ssh_host_rsa_key"; type = "rsa"; }
{ path = "${config.chvp.dataPrefix}/etc/ssh/ssh_host_ed25519_key"; type = "ed25519"; }
];
authorizedKeysFiles = [ "/run/agenix/authorized_keys/%u" ];
};
age.secrets."authorized_keys/root".file = ../../../secrets/authorized_keys/root.age;
age.secrets."authorized_keys/root"= {
file = ../../../secrets/authorized_keys/root.age;
path = "/root/.ssh/authorized_keys";
symlink = false;
};
age.secrets."authorized_keys/charlotte" = {
file = ../../../secrets/authorized_keys/charlotte.age;
owner = "charlotte";
path = "/home/charlotte/.ssh/authorized_keys";
symlink = false;
};
}