Need to write config to a file...

This commit is contained in:
niten 2023-11-26 17:38:26 -08:00
parent 8b43d0bd5a
commit 191429b307
1 changed files with 34 additions and 32 deletions

View File

@ -12,7 +12,8 @@ let
hostSecrets = config.fudo.secrets.host-secrets."${config.instance.hostname}";
frigateCfg = builtins.toJSON {
frigateCfg = let
content = builtins.toJSON {
mqtt = {
enabled = true;
inherit (cfg.mqtt) host port user;
@ -47,6 +48,7 @@ let
};
};
};
in pkgs.writeText "frigate.yaml" content;
in {
options.services.frigateContainer = with types; {