mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 10:13:14 -06:00
30 lines
463 B
Nix
30 lines
463 B
Nix
|
{
|
||
|
nixpkgs,
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) mkOption mkIf types;
|
||
|
cfg = config.users.defaultUser;
|
||
|
in {
|
||
|
options.users.defaultUser = mkOption {
|
||
|
default = true;
|
||
|
type = types.bool;
|
||
|
description = ''
|
||
|
include default user "daylin"
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg {
|
||
|
users.users.daylin = {
|
||
|
isNormalUser = true;
|
||
|
shell = pkgs.zsh;
|
||
|
extraGroups = [
|
||
|
"wheel" # sudo
|
||
|
];
|
||
|
initialPassword = "nix";
|
||
|
};
|
||
|
};
|
||
|
}
|