mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore(mosquitto): shared data
This commit is contained in:
parent
103548a87c
commit
32bc421560
2 changed files with 11 additions and 1 deletions
|
|
@ -3,7 +3,8 @@
|
|||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkDefault;
|
||||
inherit (lib.modules) mkIf mkDefault;
|
||||
cfg = config.services.mosquitto;
|
||||
sopsFile = mkDefault ./secrets/mosquitto.yaml;
|
||||
in {
|
||||
sops.secrets = {
|
||||
|
|
@ -64,5 +65,13 @@ in {
|
|||
};
|
||||
}
|
||||
];
|
||||
settings = {
|
||||
autosave_interval = mkDefault 120;
|
||||
};
|
||||
};
|
||||
systemd.services.mosquitto = mkIf cfg.enable {
|
||||
serviceConfig.BindPaths = [
|
||||
"/mnt/shared/mosquitto:${cfg.dataDir}"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
"lxc.mount.entry": [
|
||||
"/rpool/shared/unifi mnt/shared/unifi none bind,optional,create=dir",
|
||||
"/rpool/shared/postgresql mnt/shared/postgresql none bind,optional,create=dir",
|
||||
"/rpool/shared/mosquitto mnt/shared/mosquitto none bind,optional,create=dir",
|
||||
"/dev/net/tun dev/net/tun none bind,optional,create=file"
|
||||
],
|
||||
"lxc.idmap": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue