From e9639a9b98a835415f78f240b3e05f21f4ecd9d7 Mon Sep 17 00:00:00 2001 From: Julian Mutter <julian.mutter@comumail.de> Date: Wed, 29 May 2024 10:17:53 +0200 Subject: [PATCH] nix-builder add ollama --- systems/x86_64-linux/nix-builder/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/systems/x86_64-linux/nix-builder/default.nix b/systems/x86_64-linux/nix-builder/default.nix index 964fac4..3a61c3d 100644 --- a/systems/x86_64-linux/nix-builder/default.nix +++ b/systems/x86_64-linux/nix-builder/default.nix @@ -85,6 +85,8 @@ min-free-check-interval = 60 ''; + nixpkgs.config.allowUnfree = true; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ vim htop mc ]; @@ -92,6 +94,11 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + services.ollama = { + enable = true; + acceleration = "cuda"; + }; + security.pam.enableSSHAgentAuth = true; # enable sudo logins via ssh # Open ports in the firewall.