27 lines
533 B
Nix
27 lines
533 B
Nix
{
|
|
lib,
|
|
options,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
users = {
|
|
users = {
|
|
whovian = {
|
|
name = "whovian";
|
|
description = "Whovian9369";
|
|
shell = pkgs.zsh;
|
|
initialPassword = "abcde"; # I need to log in somehow
|
|
extraGroups = [
|
|
"wheel"
|
|
# Enable 'sudo' for the user.
|
|
] ++ lib.optionals (!options ? wsl) [
|
|
# These are the groups for baremetal machines, or possibly VMs.
|
|
"docker"
|
|
# Enable 'docker' for the user.
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|