nix-config/config/users/sandro.nix

27 lines
575 B
Nix
Raw Normal View History

2021-09-06 20:35:25 +02:00
{ pkgs, ... }:
let
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpMhnSYDzeopiK+uDz8hQSGnJ7l2lh5Te1PWtiCGiO2 sandro@nitrogen"
2021-10-01 20:06:33 +02:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFidD6Snqgd8J7avxHvdDd81rdi0zNZWSilBe3eaTIlv sandro@magnesium"
2021-09-06 20:35:25 +02:00
];
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;
}