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,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
vars,
...
}: {
users.users.xun = {
isNormalUser = true;
initialPassword = "nixos";
@ -12,5 +16,10 @@
"render"
"audio"
];
openssh.authorizedKeys.keys = with vars.sshKeys; [
xun_nixdesk
xun_redmi
];
};
}