It's not writeJSON, it's toJSON

This commit is contained in:
niten 2024-05-21 10:59:13 -07:00
parent 975316a114
commit 50295d9043
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ with lib;
let
cfg = config.services.immichMlContainer;
immichMlConfigYaml = pkgs.writeJSON "immich-ml-compose.yml" {
immichMlConfigYaml = pkgs.writeText "immich-ml-compose.yml" (pkgs.toJSON {
version = "3.4";
networks.default.name = "immich-ml";
volumes = { };
@ -20,7 +20,7 @@ let
restart = "always";
volumes = [ "${cfg.state-directory}:/cache" ];
};
};
});
in {
options.services.immichMlContainer = with types; {