working on ollama + pnxvpn

This commit is contained in:
nx2
2024-03-06 22:22:27 +01:00
parent 9ae85efdcb
commit c4008417df
4 changed files with 62 additions and 5 deletions

View File

@@ -126,6 +126,8 @@
neofetch
direnv
openssl
openvpn
ollama # maybe
];
environment.sessionVariables = rec {
@@ -162,8 +164,29 @@
};
### OLLAMA
systemd.services.ollama = {
description = "Ollama Service";
after = [ "network-online.target" ];
serviceConfig.Type = "simple";
serviceConfig.ExecStart = "${pkgs.ollama} serve";
serviceConfig.User = "ollama";
serviceConfig.Group = "ollama";
serviceConfig.Restart = "always";
serviceConfig.RestartSec = "3";
wantedBy = [ "default.target" ];
};
users.users.ollama = {
isSystemUser = true;
home = "/usr/share/ollama";
shell = "/bin/false";
group = "ollama";
};
users.groups.ollama = {};
### END OLLAMA
# List services that you want to enable: