programs.ollama: init
This commit is contained in:
@@ -85,6 +85,10 @@
|
||||
|
||||
i18n.fcitx5.enable = true;
|
||||
|
||||
programs = {
|
||||
ollama.enable = true;
|
||||
};
|
||||
|
||||
xdg = {
|
||||
enable = true;
|
||||
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