fix user public keys
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
{ pkgs, lib, config, name, ... }:
|
||||
import ../default.nix {
|
||||
inherit pkgs lib config name;
|
||||
pubKeys = [ "ed25516-AAAAAAA" ];
|
||||
publicKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOGcqhLaKsjwAnb6plDavAhEyQHNvFS9Uh5lMTuwMhGF alice@parthenon-7588"
|
||||
];
|
||||
}
|
@ -3,14 +3,13 @@
|
||||
config,
|
||||
pkgs,
|
||||
name,
|
||||
pubKeys ? [],
|
||||
publicKeys ? [],
|
||||
defaultShell ? "zsh",
|
||||
}:
|
||||
|
||||
{
|
||||
inherit name;
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"media"
|
||||
@ -24,5 +23,5 @@
|
||||
"uaccess"
|
||||
];
|
||||
shell = pkgs.${defaultShell};
|
||||
openssh.authorizedKeys.keys = pubKeys;
|
||||
openssh.authorizedKeys.keys = publicKeys;
|
||||
}
|
Reference in New Issue
Block a user