Compare commits
No commits in common. "b7cfcfef7db3553009d355ea74eccf18f3b7a784" and "9daa44c873eb833f655fd0cb1367659958ef9c5e" have entirely different histories.
b7cfcfef7d
...
9daa44c873
2 changed files with 9 additions and 10 deletions
|
@ -192,9 +192,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# limit arc usage to 50gb because ollama doesn't play nice with zfs using up all of the memory
|
|
||||||
boot.kernelParams = ["zfs.zfs_arc_max=53687091200"];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# TODO: move zfs scrubbing into module
|
# TODO: move zfs scrubbing into module
|
||||||
zfs = {
|
zfs = {
|
||||||
|
@ -215,11 +212,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
ollama = {
|
ollama = {
|
||||||
enable = true;
|
enable = false;
|
||||||
exposePort = true;
|
exposePort = true;
|
||||||
|
|
||||||
acceleration = false;
|
|
||||||
|
|
||||||
loadModels = [
|
loadModels = [
|
||||||
# conversation models
|
# conversation models
|
||||||
"llama3.1:8b"
|
"llama3.1:8b"
|
||||||
|
|
|
@ -28,19 +28,23 @@
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
(lib.mkIf config.host.impermanence.enable {
|
(lib.mkIf config.host.impermanence.enable {
|
||||||
# TODO: move this somewhere common
|
|
||||||
systemd.tmpfiles.rules = [
|
|
||||||
"d /var/lib/private 0700 root root"
|
|
||||||
];
|
|
||||||
environment.persistence."/persist/system/root" = {
|
environment.persistence."/persist/system/root" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
|
{
|
||||||
|
directory = config.services.ollama.models;
|
||||||
|
user = config.services.ollama.user;
|
||||||
|
group = config.services.ollama.group;
|
||||||
|
mode = "0700";
|
||||||
|
defaultPerms.mode = "0700";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
directory = "/var/lib/private/ollama";
|
directory = "/var/lib/private/ollama";
|
||||||
user = config.services.ollama.user;
|
user = config.services.ollama.user;
|
||||||
group = config.services.ollama.group;
|
group = config.services.ollama.group;
|
||||||
mode = "0700";
|
mode = "0700";
|
||||||
|
defaultPerms.mode = "0700";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue