From 5183e20efc6169050816d50bacbbbfbb5e859b12 Mon Sep 17 00:00:00 2001 From: blake Date: Fri, 10 Oct 2025 00:56:15 -0500 Subject: [PATCH] 202 current 2025-10-10 00:53:49 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- .../homelab/services/smarthome/homeassistant/default.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 977dbc7..b342de6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 201 current 2025-10-10 00:48:28 25.05.20251006.20c4598 6.12.50 * +# generation: 202 current 2025-10-10 00:53:49 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/homelab/services/smarthome/homeassistant/default.nix b/modules/homelab/services/smarthome/homeassistant/default.nix index b914aed..1b03124 100644 --- a/modules/homelab/services/smarthome/homeassistant/default.nix +++ b/modules/homelab/services/smarthome/homeassistant/default.nix @@ -41,7 +41,7 @@ in config = lib.mkIf cfg.enable { # declare ${service} group - users.groups.${service} = { gid = lib.mkForce cfg.ids; }; + users.groups.hass = { gid = lib.mkForce cfg.ids; }; # declare ${service} user users.users.${service} = { @@ -50,7 +50,7 @@ in isSystemUser = true; #home = cfg.data_dir; #createHome = true; - group = "${service}"; + group = "hass"; extraGroups = [ "bluetooth" ]; }; @@ -83,8 +83,8 @@ in # override umask to make permissions work out systemd.services.${service}.serviceConfig = { UMask = lib.mkForce "0007"; - User = lib.mkForce "${service}"; - Group = lib.mkForce "${service}"; + User = lib.mkForce "hass"; + Group = lib.mkForce "hass"; }; # # open firewall