working on ollama + pnxvpn
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user