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)
OLLAMA_MODELS = cfg.models;
};
# Logs de sortie standard
StandardOutPath = "${cfg.home}/ollama.log";
StandardErrorPath = "${cfg.home}/ollama-error.log";
# Logs de sortie standard (laissé à null pour utiliser le système de logs macOS)
# Les logs seront visibles via: log show --predicate 'process == "ollama"' --info
StandardOutPath = null;
StandardErrorPath = null;
};
};
@ -157,8 +158,8 @@ in
'') cfg.loadModels}
''
];
StandardOutPath = "${cfg.home}/model-loader.log";
StandardErrorPath = "${cfg.home}/model-loader-error.log";
StandardOutPath = null;
StandardErrorPath = null;
};
};
@ -175,3 +176,4 @@ in
meta.maintainers = with lib.maintainers; [ ];
}