149 current 2025-10-09 03:59:16 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-09 11:52:37 -05:00
parent 67a87b3710
commit 3386b01980

View File

@@ -28,7 +28,7 @@ in
};
ids = lib.mkOption {
type = lib.types.int;
default = lib.mkForce port;
default = cfg.port;
description = "set uid and pid of ${service} user (matches port by default)";
};
backup = lib.mkOption {
@@ -41,12 +41,12 @@ in
config = lib.mkIf cfg.enable {
# declare ${service} group
users.groups.${service} = { gid = cfg.ids; };
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
# declare ${service} user
users.users.${service} = {
description = "${service} server user";
uid = cfg.ids;
uid = lib.mkForce cfg.ids;
isSystemUser = true;
home = cfg.data_dir;
createHome = true;