nix-builder add ollama

This commit is contained in:
Julian Mutter 2024-05-29 10:17:53 +02:00
parent 645f206821
commit e9639a9b98

View File

@ -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.