Files
rice-flakes/modules/core/users.nix
T

36 lines
652 B
Nix

{ username, pkgs, ... }:
{
users.users.${username} = {
isNormalUser = true;
description = "${username}";
extraGroups = [
"wheel"
"docker"
];
shell = pkgs.zsh;
};
users.users.fen = {
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8nZT7pA+Wp7mnjKSJPpmYs+tFx5q+gtvOcSSMJt93D fen"
];
};
nix.settings.allowed-users = [ "@wheel" ];
security.sudo.extraRules = [
{
users = [ "fen" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
}