add more options for user in mydesktop module

This commit is contained in:
2026-06-30 11:16:54 +02:00
parent 86f41cbba4
commit d6089d1791
+27 -14
View File
@@ -116,6 +116,31 @@ in {
description = "SSH key used for git commit signing on this host.";
};
user = {
id = mkOption {
type = types.int;
default = 2000;
description = "User UID to set, default 2000";
};
groups = mkOption {
type = types.listOf types.str;
default = [
"wheel"
"video"
"audio"
"camera"
"networkmanager"
"lp"
"kvm"
"libvirtd"
"adb"
"dialout"
"tss"
];
description = "Groups the user is in";
};
};
extraSystemPackages = mkOption {
type = types.listOf types.package;
default = [];
@@ -130,20 +155,8 @@ in {
{
users.users.${user} = {
isNormalUser = true;
uid = 2000;
extraGroups = [
"wheel"
"video"
"audio"
"camera"
"networkmanager"
"lp"
"kvm"
"libvirtd"
"adb"
"dialout"
"tss"
];
uid = cfg.user.id;
extraGroups = cfg.user.groups;
};
security = {