41 lines
777 B
Nix
41 lines
777 B
Nix
|
{
|
||
|
pkgs,
|
||
|
username,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
inherit (import ./variables.nix) gitUsername;
|
||
|
in
|
||
|
{
|
||
|
users.users = {
|
||
|
"${username}" = {
|
||
|
homeMode = "755";
|
||
|
isNormalUser = true;
|
||
|
description = "${gitUsername}";
|
||
|
extraGroups = [
|
||
|
"networkmanager"
|
||
|
"wheel"
|
||
|
"libvirtd"
|
||
|
"scanner"
|
||
|
"lp"
|
||
|
];
|
||
|
shell = pkgs.bash;
|
||
|
ignoreShellProgramCheck = true;
|
||
|
packages = with pkgs; [
|
||
|
webcord
|
||
|
zeroad
|
||
|
];
|
||
|
};
|
||
|
# "newuser" = {
|
||
|
# homeMode = "755";
|
||
|
# isNormalUser = true;
|
||
|
# description = "New user account";
|
||
|
# extraGroups = [ "networkmanager" "wheel" "libvirtd" ];
|
||
|
# shell = pkgs.bash;
|
||
|
# ignoreShellProgramCheck = true;
|
||
|
# packages = with pkgs; [];
|
||
|
# };
|
||
|
};
|
||
|
}
|