201 current 2025-10-10 00:48:28 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-10 00:53:51 -05:00
parent af4f75b21b
commit 7093c119cb

View File

@@ -23,7 +23,7 @@ in
}; };
data_dir = lib.mkOption { data_dir = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = "/var/lib/${service}"; default = "/var/lib/hass";
description = "set data directory for ${service}"; description = "set data directory for ${service}";
}; };
ids = lib.mkOption { ids = lib.mkOption {
@@ -50,7 +50,7 @@ in
isSystemUser = true; isSystemUser = true;
#home = cfg.data_dir; #home = cfg.data_dir;
#createHome = true; #createHome = true;
#group = "${service}"; group = "${service}";
extraGroups = [ "bluetooth" ]; extraGroups = [ "bluetooth" ];
}; };
@@ -83,8 +83,8 @@ in
# override umask to make permissions work out # override umask to make permissions work out
systemd.services.${service}.serviceConfig = { systemd.services.${service}.serviceConfig = {
UMask = lib.mkForce "0007"; UMask = lib.mkForce "0007";
# User = lib.mkForce "${service}"; User = lib.mkForce "${service}";
# Group = lib.mkForce "${service}"; Group = lib.mkForce "${service}";
}; };
# # open firewall # # open firewall