add user astro
This commit is contained in:
parent
48944bad3c
commit
033c81399d
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGJJTSJdpDh82486uPiMhhyhnci4tScp5uUe7156MBC8 astro"
|
||||
];
|
||||
in {
|
||||
|
||||
nix.trustedUsers = [ "astro" ];
|
||||
|
||||
users.users.astro = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "users" "wheel" "kvm" "audio" "video" "adbusers" "camera" ];
|
||||
openssh.authorizedKeys.keys = keys;
|
||||
};
|
||||
|
||||
nix.sshServe.keys = keys;
|
||||
}
|
Loading…
Reference in New Issue