mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(bbuddy): shared data
This commit is contained in:
parent
01219383bb
commit
0a48d9cf5d
1 changed files with 16 additions and 0 deletions
|
|
@ -36,6 +36,22 @@ in {
|
|||
config.users.users.barcodebuddy = mkIf cfg.enable {
|
||||
uid = 912;
|
||||
};
|
||||
config.systemd.services = let
|
||||
BindPaths = [
|
||||
"/mnt/shared/barcodebuddy:${cfg.dataDir}"
|
||||
];
|
||||
in mkIf cfg.enable {
|
||||
phpfpm-barcodebuddy = {
|
||||
serviceConfig = {
|
||||
inherit BindPaths;
|
||||
};
|
||||
};
|
||||
bbuddy-websocket = mkIf cfg.screen.enable {
|
||||
serviceConfig = {
|
||||
inherit BindPaths;
|
||||
};
|
||||
};
|
||||
};
|
||||
config.sops.secrets.barcodebuddy-fastcgi-params = mkIf cfg.enable {
|
||||
sopsFile = mkDefault ./secrets/barcodebuddy.yaml;
|
||||
owner = mkDefault nginx.user;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue