add user astro

This commit is contained in:
Astro 2021-09-06 20:49:01 +02:00
parent 48944bad3c
commit 033c81399d
1 changed files with 18 additions and 0 deletions

18
lib/users/astro.nix Normal file
View File

@ -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;
}