36 lines
681 B
Nix
36 lines
681 B
Nix
{ 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" "deploy" ];
|
|
commands = [
|
|
{
|
|
command = "ALL";
|
|
options = [ "NOPASSWD" ];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
|
|
nix.settings.trusted-users = [ "root" "@wheel" ];
|
|
}
|