move ssh public keys into vars

This commit is contained in:
xunuwu 2025-05-10 09:31:04 +02:00
parent 63fbe20d51
commit 66fc4a96b3
5 changed files with 20 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
lib,
self,
vars,
...
}: {
nix.settings.trusted-users = ["deploy"]; # trust closures created by our user
@ -18,9 +18,10 @@
password = lib.mkForce null;
passwordFile = lib.mkForce null;
openssh.authorizedKeys.keyFiles = [
(self + /sshKeys/xun_nixdesk)
(self + /sshKeys/alka_alkpc)
openssh.authorizedKeys.keys = with vars.sshKeys; [
xun_nixdesk
xun_redmi
alka_alkpc
];
};
}