Disable CPU ML by default

This commit is contained in:
niten 2024-05-20 16:51:58 -07:00
parent fd6cd5e335
commit 5af0b2faf7
1 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ in {
enable =
mkEnableOption "Enable Immich photo server running in a container.";
cpu-machine-learning =
mkEnableOption "Perform machine learning using the local CPU.";
state-directory = mkOption {
type = str;
description = "Path at which to store server state.";
@ -115,7 +118,7 @@ in {
};
};
immich-machine-learning = {
immich-machine-learning = mkIf cfg.cpu-machine-learning {
service = {
image = cfg.images.immich-ml;
restart = "always";