added ollama to the system packages
This commit is contained in:
parent
660a7df807
commit
a510a13e0e
@ -63,6 +63,7 @@
|
||||
program = {
|
||||
docker.enable = false;
|
||||
podman.enable = true;
|
||||
ollama.enable = true;
|
||||
steam.enable = true;
|
||||
proxychains.enable = true;
|
||||
tor.enable = true;
|
||||
|
||||
@ -9,11 +9,13 @@
|
||||
./packages/sops/sops.nix
|
||||
./packages/ssh-client.nix
|
||||
./packages/syncthing.nix
|
||||
./packages/ollama.nix
|
||||
];
|
||||
|
||||
program = {
|
||||
docker.enable = lib.mkDefault false;
|
||||
podman.enable = lib.mkDefault true;
|
||||
ollama.enable = lib.mkDefault false;
|
||||
steam.enable = lib.mkDefault true;
|
||||
proxychains.enable = lib.mkDefault true;
|
||||
tor.enable = lib.mkDefault true;
|
||||
|
||||
17
nixos/system/packages/ollama.nix
Normal file
17
nixos/system/packages/ollama.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
options.program.ollama.enable = lib.mkEnableOption "Enable Ollama";
|
||||
|
||||
config = lib.mkIf config.program.ollama.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration =
|
||||
if config.sys.nvidia.enable == true
|
||||
then "cuda"
|
||||
else "false";
|
||||
};
|
||||
};
|
||||
}
|
||||
@ -17,7 +17,6 @@
|
||||
flake = inputs.self.outPath;
|
||||
flags = [
|
||||
"--commit-lock-file"
|
||||
"-L" # print build logs
|
||||
];
|
||||
dates = "weekly";
|
||||
randomizedDelaySec = "45min";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user