feat(users): add enable option
This commit is contained in:
@@ -1,10 +1,18 @@
|
|||||||
{ config, ... }:
|
{ lib, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
users.users.${config.host.username} = {
|
options.my.users.enable = lib.mkEnableOption "user account";
|
||||||
isNormalUser = true;
|
|
||||||
description = config.host.username;
|
config = lib.mkIf config.my.users.enable {
|
||||||
extraGroups = [ "wheel" ];
|
users.users.${config.host.username} = {
|
||||||
initialPassword = "h";
|
isNormalUser = true;
|
||||||
|
description = config.host.username;
|
||||||
|
extraGroups = [
|
||||||
|
"wheel"
|
||||||
|
"render"
|
||||||
|
"video"
|
||||||
|
];
|
||||||
|
initialPassword = "h";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user