149 current 2025-10-09 03:59:16 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -28,7 +28,7 @@ in
|
|||||||
};
|
};
|
||||||
ids = lib.mkOption {
|
ids = lib.mkOption {
|
||||||
type = lib.types.int;
|
type = lib.types.int;
|
||||||
default = lib.mkForce port;
|
default = cfg.port;
|
||||||
description = "set uid and pid of ${service} user (matches port by default)";
|
description = "set uid and pid of ${service} user (matches port by default)";
|
||||||
};
|
};
|
||||||
backup = lib.mkOption {
|
backup = lib.mkOption {
|
||||||
@@ -41,12 +41,12 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
# declare ${service} group
|
# declare ${service} group
|
||||||
users.groups.${service} = { gid = cfg.ids; };
|
users.groups.${service} = { gid = lib.mkForce cfg.ids; };
|
||||||
|
|
||||||
# declare ${service} user
|
# declare ${service} user
|
||||||
users.users.${service} = {
|
users.users.${service} = {
|
||||||
description = "${service} server user";
|
description = "${service} server user";
|
||||||
uid = cfg.ids;
|
uid = lib.mkForce cfg.ids;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
home = cfg.data_dir;
|
home = cfg.data_dir;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user