Fixed Ollama.nix

This commit is contained in:
Alexandre1a 2025-12-27 00:56:26 +01:00
parent 3dfcb41244
commit 8efea2a012
No known key found for this signature in database
GPG Key ID: CE01C28FBC5EEF10

View File

@ -118,9 +118,10 @@ in
# Le répertoire des modèles (on utilise toujours OLLAMA_MODELS) # Le répertoire des modèles (on utilise toujours OLLAMA_MODELS)
OLLAMA_MODELS = cfg.models; OLLAMA_MODELS = cfg.models;
}; };
# Logs de sortie standard # Logs de sortie standard (laissé à null pour utiliser le système de logs macOS)
StandardOutPath = "${cfg.home}/ollama.log"; # Les logs seront visibles via: log show --predicate 'process == "ollama"' --info
StandardErrorPath = "${cfg.home}/ollama-error.log"; StandardOutPath = null;
StandardErrorPath = null;
}; };
}; };
@ -157,8 +158,8 @@ in
'') cfg.loadModels} '') cfg.loadModels}
'' ''
]; ];
StandardOutPath = "${cfg.home}/model-loader.log"; StandardOutPath = null;
StandardErrorPath = "${cfg.home}/model-loader-error.log"; StandardErrorPath = null;
}; };
}; };
@ -175,3 +176,4 @@ in
meta.maintainers = with lib.maintainers; [ ]; meta.maintainers = with lib.maintainers; [ ];
} }