lkajsdlakjsdlkjasd
This commit is contained in:
parent
0e0b638e79
commit
d97b9bbcd7
@ -37,6 +37,8 @@
|
|||||||
virtualisation.podman.enableNvidia = lib.mkDefault true; # deprecated
|
virtualisation.podman.enableNvidia = lib.mkDefault true; # deprecated
|
||||||
hardware.nvidia-container-toolkit.enable = lib.mkDefault true;
|
hardware.nvidia-container-toolkit.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
services.ollama.acceleration = lib.mkDefault "cuda";
|
||||||
|
|
||||||
# only do these per-host
|
# only do these per-host
|
||||||
|
|
||||||
#hardware.nvidia.open = lib.mkDefault true; # open source version of kernel module, only on driver 515.43.04+
|
#hardware.nvidia.open = lib.mkDefault true; # open source version of kernel module, only on driver 515.43.04+
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
nixpkgs.config.vdpauSupport = true;
|
nixpkgs.config.vdpauSupport = true;
|
||||||
nixpkgs.config.vaapiSupport = true;
|
nixpkgs.config.vaapiSupport = true;
|
||||||
|
|
||||||
|
services.ollama.acceleration = lib.mkDefault "rocm";
|
||||||
}
|
}
|
||||||
(lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05") {
|
(lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.05") {
|
||||||
hardware.amdgpu.opencl.enable = lib.mkDefault true;
|
hardware.amdgpu.opencl.enable = lib.mkDefault true;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"aarch64-linux"
|
||||||
"riscv64-linux"
|
"riscv64-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
boot.binfmt.emulatedSystems = [
|
boot.binfmt.emulatedSystems = [
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
|
"riscv64-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.nfs.server.enable = false; # TODO: remove?
|
services.nfs.server.enable = false; # TODO: remove?
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
boot.binfmt.emulatedSystems = [
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"aarch64-linux"
|
||||||
"riscv64-linux"
|
"riscv64-linux"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ ssh.connectTimeout = 3
|
|||||||
|
|
||||||
|
|
||||||
["bolle.pbsds.net"]
|
["bolle.pbsds.net"]
|
||||||
buildMachine.systems = ["x86_64-linux", "i686-linux", "riscv64-linux"]
|
buildMachine.systems = ["x86_64-linux", "i686-linux", "aarch64-linux", "riscv64-linux"]
|
||||||
buildMachine.maxJobs = 3 # 12 threads 32GB
|
buildMachine.maxJobs = 3 # 12 threads 32GB
|
||||||
buildMachine.speedFactor = 4 # ???
|
buildMachine.speedFactor = 4 # ???
|
||||||
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test"]
|
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test"]
|
||||||
@ -52,7 +52,7 @@ ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
|||||||
|
|
||||||
["eple.pbsds.net"] # r9 290x
|
["eple.pbsds.net"] # r9 290x
|
||||||
aliases = [ "eple.tail9aac63.ts.net" ]
|
aliases = [ "eple.tail9aac63.ts.net" ]
|
||||||
buildMachine.systems = ["x86_64-linux", "i686-linux", "aarch64-linux"]
|
buildMachine.systems = ["x86_64-linux", "i686-linux", "aarch64-linux", "riscv64-linux"]
|
||||||
buildMachine.maxJobs = 3 # 12 threads 32GB
|
buildMachine.maxJobs = 3 # 12 threads 32GB
|
||||||
buildMachine.speedFactor = 3 # i7-5820K
|
buildMachine.speedFactor = 3 # i7-5820K
|
||||||
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test"]
|
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test"]
|
||||||
@ -60,7 +60,7 @@ ssh.listenPublicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH03MEINNnjBvtmvN2QsC
|
|||||||
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
ssh.proxyJump = "isvegg.pvv.ntnu.no"
|
||||||
|
|
||||||
["garp.pbsds.net"] # gtx 1080
|
["garp.pbsds.net"] # gtx 1080
|
||||||
buildMachine.systems = ["x86_64-linux", "i686-linux", "riscv64-linux"]
|
buildMachine.systems = ["x86_64-linux", "i686-linux", "aarch64-linux", "riscv64-linux"]
|
||||||
buildMachine.maxJobs = 2 # 8 threads 32GB
|
buildMachine.maxJobs = 2 # 8 threads 32GB
|
||||||
buildMachine.speedFactor = 4 # i7-6700
|
buildMachine.speedFactor = 4 # i7-6700
|
||||||
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test", "cuda"]
|
buildMachine.supportedFeatures = ["kvm", "big-parallel", "nixos-test", "cuda"]
|
||||||
|
7
profiles/services/ollama.nix
Normal file
7
profiles/services/ollama.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# http://localhost:11434/
|
||||||
|
services.ollama.enable = true;
|
||||||
|
/* services.ollama.openFirewall = true; */
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user