mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(grocy): shared data
This commit is contained in:
parent
fbf96aacef
commit
01219383bb
1 changed files with 16 additions and 3 deletions
|
|
@ -1,8 +1,5 @@
|
|||
{config, lib, ...}: let
|
||||
inherit (lib.modules) mkIf mkDefault mkAfter;
|
||||
inherit (lib.strings) escapeRegex;
|
||||
inherit (config.services) nginx;
|
||||
inherit (config) networking;
|
||||
cfg = config.services.grocy;
|
||||
in {
|
||||
config = {
|
||||
|
|
@ -70,5 +67,21 @@ in {
|
|||
users.users.grocy = mkIf cfg.enable {
|
||||
uid = 911;
|
||||
};
|
||||
systemd.services = let
|
||||
BindPaths = [
|
||||
"/mnt/shared/grocy:${cfg.dataDir}"
|
||||
];
|
||||
in mkIf cfg.enable {
|
||||
grocy-setup = {
|
||||
serviceConfig = {
|
||||
inherit BindPaths;
|
||||
};
|
||||
};
|
||||
phpfpm-grocy = {
|
||||
serviceConfig = {
|
||||
inherit BindPaths;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue