programs.ollama: init

This commit is contained in:
2026-07-14 18:27:00 +08:00
parent 4b00391922
commit 0557e0ef06
2 changed files with 24 additions and 0 deletions
+4
View File
@@ -85,6 +85,10 @@
i18n.fcitx5.enable = true;
programs = {
ollama.enable = true;
};
xdg = {
enable = true;
defaultApplications =
+20
View File
@@ -0,0 +1,20 @@
{
config,
lib,
...
}:
let
cfg = config.my.programs.ollama;
in
{
options.my.programs.ollama = {
enable = lib.mkEnableOption "ollama";
};
config = lib.mkIf cfg.enable {
my.hm.services.ollama.enable = true;
my.persist.homeDirs = [
".ollama"
];
};
}