System/nixos/modules/user.nix

33 lines
549 B
Nix
Raw Permalink Normal View History

2024-11-28 00:13:48 +00:00
{
inputs,
mutableUsers ? false,
username ? "nathan",
homedir ? "/home/nathan",
}:
{
config,
lib,
pkgs,
...
}:
{
2024-11-28 02:25:07 +00:00
security.polkit = {
enable = true;
};
users = {
inherit mutableUsers;
users.${username} = {
home = homedir;
description = "Nathan McCarty";
shell = pkgs.nushell;
isNormalUser = true;
extraGroups = [
"wheel"
];
hashedPassword = "$6$ShBAPGwzKZuB7eEv$cbb3erUqtVGFo/Vux9UwT2NkbVG9VGCxJxPiZFYL0DIc3t4GpYxjkM0M7fFnh.6V8MoSKLM/TvOtzdWbYwI58.";
};
2024-11-28 00:13:48 +00:00
2024-11-28 02:25:07 +00:00
};
2024-11-28 00:13:48 +00:00
}