Creates a second normal user `rialo` (uid 1001) on the amd system, member of wheel/docker/dialout/tss and listed in nix.settings.trusted-users so they can manage the Nix daemon. The home config imports harald@amd and replicates the bash→fish auto-exec snippet (which lives in the NixOS user module and only fires for the primary metacfg user).
18 lines
288 B
Nix
18 lines
288 B
Nix
{ pkgs, ... }:
|
|
{
|
|
users.users.rialo = {
|
|
isNormalUser = true;
|
|
home = "/home/rialo";
|
|
group = "users";
|
|
shell = pkgs.bash;
|
|
uid = 1001;
|
|
extraGroups = [
|
|
"wheel"
|
|
"docker"
|
|
"dialout"
|
|
"tss"
|
|
];
|
|
};
|
|
|
|
nix.settings.trusted-users = [ "rialo" ];
|
|
}
|