Disable CPU ML by default
This commit is contained in:
parent
fd6cd5e335
commit
5af0b2faf7
|
@ -19,6 +19,9 @@ in {
|
||||||
enable =
|
enable =
|
||||||
mkEnableOption "Enable Immich photo server running in a container.";
|
mkEnableOption "Enable Immich photo server running in a container.";
|
||||||
|
|
||||||
|
cpu-machine-learning =
|
||||||
|
mkEnableOption "Perform machine learning using the local CPU.";
|
||||||
|
|
||||||
state-directory = mkOption {
|
state-directory = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
description = "Path at which to store server state.";
|
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 = {
|
service = {
|
||||||
image = cfg.images.immich-ml;
|
image = cfg.images.immich-ml;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
|
|
Loading…
Reference in New Issue