diff --git a/nixos/grocy.nix b/nixos/grocy.nix index 443e6a4a..5ce8ca15 100644 --- a/nixos/grocy.nix +++ b/nixos/grocy.nix @@ -3,6 +3,7 @@ inherit (lib.strings) escapeRegex; inherit (config.services) nginx; inherit (config) networking; + cfg = config.services.grocy; in { config = { services.grocy = { @@ -31,7 +32,7 @@ in { fastcgi_param GROCY_AUTH_CLASS $grocy_middleware; ''; - in { + in mkIf cfg.enable { lua.http.enable = true; virtualHosts = { grocy = {config, ...}: { @@ -65,5 +66,8 @@ in { }; }; }; + users.users.grocy = mkIf cfg.enable { + uid = 911; + }; }; } diff --git a/systems/reisen/setup.sh b/systems/reisen/setup.sh index 73c6f1af..7ecfbe6c 100644 --- a/systems/reisen/setup.sh +++ b/systems/reisen/setup.sh @@ -151,6 +151,8 @@ chown 100195:65534 /rpool/caches/plex/tautulli/cache chmod 0755 /rpool/caches/plex/tautulli/cache mkshared hass 100286 100286 0700 +mkshared grocy 100911 100060 0700 +mkshared barcodebuddy 100912 100060 0700 mkshared kanidm 100994 100993 0700 mkshared mosquitto 100246 100246 0700 mkshared plex 100193 100193 0750 diff --git a/systems/tei/lxc.json b/systems/tei/lxc.json index d19b9987..05d3f8b6 100644 --- a/systems/tei/lxc.json +++ b/systems/tei/lxc.json @@ -5,6 +5,8 @@ "/rpool/shared/zigbee2mqtt mnt/shared/zigbee2mqtt none bind,optional,create=dir", "/rpool/shared/mosquitto mnt/shared/mosquitto none bind,optional,create=dir", "/rpool/shared/hass mnt/shared/hass none bind,optional,create=dir", + "/rpool/shared/grocy mnt/shared/grocy none bind,optional,create=dir", + "/rpool/shared/barcodebuddy mnt/shared/barcodebuddy none bind,optional,create=dir", "/rpool/shared/postgresql mnt/shared/postgresql none bind,optional,create=dir", "/dev/ttyZigbee dev/ttyZigbee none bind,optional,create=file", "/dev/net/tun dev/net/tun none bind,optional,create=file"