nix-config/hosts/hyp-01/modules/users.nix
Lander Van den Bulcke c3e19aae29
fix: assertions
Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
2025-11-04 10:54:43 +01:00

22 lines
440 B
Nix

{ pkgs, ... }:
let
sshKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnthKtz0fE4yQ/X10cJgKVCjYCNkRNoqV28xAhD7h2M cardno:22_498_026";
in
{
users.mutableUsers = false;
users.users.root = {
openssh.authorizedKeys.keys = [ sshKey ];
};
users.users.lander = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [
"wheel"
];
openssh.authorizedKeys.keys = [ sshKey ];
};
programs.zsh.enable = true;
}