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