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