feat(users): add enable option

This commit is contained in:
2026-05-22 20:20:50 +02:00
parent e0e51558b7
commit d152f990f4

View File

@@ -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";
};
}; };
} }