mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 21:21:53 -05:00
43 lines
821 B
Nix
43 lines
821 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: {
|
||
|
options.ar.users = let
|
||
|
mkUser = user: {
|
||
|
enable = lib.mkEnableOption "${user}.";
|
||
|
|
||
|
manageHome = lib.mkOption {
|
||
|
description = "Whether to manage ${user}'s home directory.";
|
||
|
type = lib.types.bool;
|
||
|
default = true;
|
||
|
};
|
||
|
|
||
|
password = lib.mkOption {
|
||
|
description = "Hashed password for ${user}.";
|
||
|
type = lib.types.str;
|
||
|
};
|
||
|
};
|
||
|
in {
|
||
|
defaultGroups = lib.mkOption {
|
||
|
description = "Default groups for desktop users.";
|
||
|
default = [
|
||
|
"dialout"
|
||
|
"docker"
|
||
|
"libvirtd"
|
||
|
"lp"
|
||
|
"networkmanager"
|
||
|
"scanner"
|
||
|
"transmission"
|
||
|
"video"
|
||
|
"wheel"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
aly = mkUser "aly";
|
||
|
dustin = mkUser "dustin";
|
||
|
morgan = mkUser "morgan";
|
||
|
};
|
||
|
}
|