add user sandro

This commit is contained in:
Sandro - 2021-09-06 20:35:25 +02:00
parent 9a16c2148b
commit 48944bad3c
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 25 additions and 0 deletions

25
lib/users/sandro.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
let
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpMhnSYDzeopiK+uDz8hQSGnJ7l2lh5Te1PWtiCGiO2 sandro@nitrogen"
];
in {
nix.trustedUsers = [ "sandro" ];
programs = {
bash.enable = true;
tmux.enable = true;
};
users.users.sandro = {
isNormalUser = true;
extraGroups = [ "users" "wheel" ];
openssh.authorizedKeys.keys = keys;
};
users.users.root.openssh.authorizedKeys.keys = keys;
nix.sshServe.keys = keys;
}