Change authorized keys installation
This commit is contained in:
parent
6c556a3156
commit
d07c6ffeb2
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue