247 current 2025-10-10 23:01:56 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-10 23:08:05 -05:00
parent 4cf4edff26
commit 83612a7f87

View File

@@ -41,18 +41,18 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# declare ${service} group # declare ${service} group
users.groups.hass = { gid = lib.mkForce cfg.ids; }; # users.groups.hass = { gid = lib.mkForce cfg.ids; };
# declare ${service} user # declare ${service} user
users.users.hass = { # users.users.hass = {
description = "${service} server user"; # description = "${service} server user";
uid = lib.mkForce cfg.ids; # uid = lib.mkForce cfg.ids;
isSystemUser = true; # isSystemUser = true;
#home = cfg.data_dir; # #home = cfg.data_dir;
#createHome = true; # #createHome = true;
group = "hass"; # group = "hass";
extraGroups = [ "bluetooth" ]; # extraGroups = [ "bluetooth" ];
}; # };
# enable the ${service} service # enable the ${service} service
services.${service} = { services.${service} = {
@@ -65,27 +65,26 @@ in
"met" "met"
"radio_browser" "radio_browser"
"shopping_list" "shopping_list"
# zlib
"isal" "isal"
]; ];
# imperative config # imperative config
# config = null; config = null;
# lovelaceConfig = null; lovelaceConfig = null;
# configDir = cfg.data_dir; # configDir = cfg.data_dir;
# declartive poggers! # declartive poggers!
config = { # config = {
# Includes dependencies for a basic setup # # Includes dependencies for a basic setup
default_config = {}; # default_config = {};
}; # };
}; };
# 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 "hass"; # User = lib.mkForce "hass";
Group = lib.mkForce "hass"; # Group = lib.mkForce "hass";
}; # };
# # open firewall # # open firewall
networking.firewall.allowedTCPPorts = [ cfg.port 8123 ]; networking.firewall.allowedTCPPorts = [ cfg.port 8123 ];