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