mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
chore(grocy): shared data
This commit is contained in:
parent
f0b5811915
commit
b8f5c4b457
3 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue