This commit is contained in:
2026-05-31 10:56:54 +01:00
parent 73f436b560
commit fb5aa85711
9 changed files with 103 additions and 109 deletions

35
modules/common/users.nix Normal file
View File

@@ -0,0 +1,35 @@
{ config, lib, pkgs, ... }:
{
users.mutableUsers = false;
users.users.phoenix = {
isNormalUser = true;
description = "Phoenix";
extraGroups = [ "wheel" "networkmanager" ];
shell = pkgs.bash;
home = "/home/phoenix";
createHome = true;
useDefaultShell = true;
};
users.users.deploy = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ];
home = "/home/deploy";
};
security.sudo.extraRules = [
{
users = [ "phoenix" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
nix.settings.trusted-users = [ "root" "@wheel" ];
}