Change pub-solar.user.publicKeys to an actual key string list

This commit is contained in:
Benjamin Bädorf 2022-08-13 20:16:35 +02:00
parent 70980fba28
commit ded0dd7d15
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C
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 [ ];
};
};
}