Change user.publicKeys to a SSH keys string list

adr/01-lvm-on-luks
teutat3s 2022-10-05 11:57:51 +02:00
parent b7132c3744
commit f28d05e24e
Signed by untrusted user: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ in
};
publicKeys = mkOption {
description = "User SSH public keys";
type = types.listOf types.path;
type = types.listOf types.str;
default = [ ];
};
fullName = mkOption {

View File

@ -25,7 +25,7 @@ in
];
initialHashedPassword = if psCfg.user.password != null then psCfg.user.password else "";
shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = if psCfg.user.publicKeys != null then psCfg.user.publicKeys else [ ];
openssh.authorizedKeys.keys = if psCfg.user.publicKeys != null then psCfg.user.publicKeys else [ ];
};
};
}