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, ... }:
{ {
options.my.users.enable = lib.mkEnableOption "user account";
config = lib.mkIf config.my.users.enable {
users.users.${config.host.username} = { users.users.${config.host.username} = {
isNormalUser = true; isNormalUser = true;
description = config.host.username; description = config.host.username;
extraGroups = [ "wheel" ]; extraGroups = [
"wheel"
"render"
"video"
];
initialPassword = "h"; initialPassword = "h";
}; };
};
} }