programs.ollama: init
This commit is contained in:
@@ -85,6 +85,10 @@
|
|||||||
|
|
||||||
i18n.fcitx5.enable = true;
|
i18n.fcitx5.enable = true;
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
ollama.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultApplications =
|
defaultApplications =
|
||||||
|
|||||||
@@ -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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user