Need to write config to a file...
This commit is contained in:
parent
8b43d0bd5a
commit
191429b307
|
@ -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; {
|
||||
|
|
Loading…
Reference in New Issue