247 current 2025-10-10 23:01:56 25.05.20251006.20c4598 6.12.50 *
This commit is contained in:
@@ -41,18 +41,18 @@ in
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
# declare ${service} group
|
||||
users.groups.hass = { gid = lib.mkForce cfg.ids; };
|
||||
# users.groups.hass = { gid = lib.mkForce cfg.ids; };
|
||||
|
||||
# declare ${service} user
|
||||
users.users.hass = {
|
||||
description = "${service} server user";
|
||||
uid = lib.mkForce cfg.ids;
|
||||
isSystemUser = true;
|
||||
#home = cfg.data_dir;
|
||||
#createHome = true;
|
||||
group = "hass";
|
||||
extraGroups = [ "bluetooth" ];
|
||||
};
|
||||
# users.users.hass = {
|
||||
# description = "${service} server user";
|
||||
# uid = lib.mkForce cfg.ids;
|
||||
# isSystemUser = true;
|
||||
# #home = cfg.data_dir;
|
||||
# #createHome = true;
|
||||
# group = "hass";
|
||||
# extraGroups = [ "bluetooth" ];
|
||||
# };
|
||||
|
||||
# enable the ${service} service
|
||||
services.${service} = {
|
||||
@@ -65,27 +65,26 @@ in
|
||||
"met"
|
||||
"radio_browser"
|
||||
"shopping_list"
|
||||
# zlib
|
||||
"isal"
|
||||
];
|
||||
# imperative config
|
||||
# config = null;
|
||||
# lovelaceConfig = null;
|
||||
config = null;
|
||||
lovelaceConfig = null;
|
||||
# configDir = cfg.data_dir;
|
||||
# declartive poggers!
|
||||
config = {
|
||||
# Includes dependencies for a basic setup
|
||||
default_config = {};
|
||||
};
|
||||
# config = {
|
||||
# # Includes dependencies for a basic setup
|
||||
# default_config = {};
|
||||
# };
|
||||
};
|
||||
|
||||
|
||||
# override umask to make permissions work out
|
||||
systemd.services.${service}.serviceConfig = {
|
||||
UMask = lib.mkForce "0007";
|
||||
User = lib.mkForce "hass";
|
||||
Group = lib.mkForce "hass";
|
||||
};
|
||||
# systemd.services.${service}.serviceConfig = {
|
||||
# UMask = lib.mkForce "0007";
|
||||
# User = lib.mkForce "hass";
|
||||
# Group = lib.mkForce "hass";
|
||||
# };
|
||||
|
||||
# # open firewall
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port 8123 ];
|
||||
|
||||
Reference in New Issue
Block a user