150 current 2025-10-09 11:52:30 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-09 11:53:12 -05:00
parent 3386b01980
commit 85ddb74e49
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config
# define new devices in outputs
# generation: 149 current 2025-10-09 03:59:16 25.05.20251006.20c4598 6.12.50 *
# generation: 150 current 2025-10-09 11:52:30 25.05.20251006.20c4598 6.12.50 *
{
description = "blakes nix config";
inputs = {

View File

@@ -28,7 +28,7 @@ in
};
ids = lib.mkOption {
type = lib.types.int;
default = lib.mkForce cfg.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;