nix-builder add ollama
This commit is contained in:
parent
645f206821
commit
e9639a9b98
@ -85,6 +85,8 @@
|
|||||||
min-free-check-interval = 60
|
min-free-check-interval = 60
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [ vim htop mc ];
|
environment.systemPackages = with pkgs; [ vim htop mc ];
|
||||||
@ -92,6 +94,11 @@
|
|||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = "cuda";
|
||||||
|
};
|
||||||
|
|
||||||
security.pam.enableSSHAgentAuth = true; # enable sudo logins via ssh
|
security.pam.enableSSHAgentAuth = true; # enable sudo logins via ssh
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user