2024-10-18 09:26:45 +02:00
|
|
|
{ config, lib, ... }:
|
2024-10-12 00:20:58 +02:00
|
|
|
|
|
|
|
lib.extra.mkConfig {
|
|
|
|
enabledModules = [
|
|
|
|
# INFO: This list needs to stay sorted alphabetically
|
|
|
|
];
|
|
|
|
|
|
|
|
enabledServices = [
|
|
|
|
# INFO: This list needs to stay sorted alphabetically
|
|
|
|
# Machine learning API machine
|
2024-10-18 09:26:45 +02:00
|
|
|
# "microvm-ml01"
|
|
|
|
# "microvm-router01"
|
2024-10-12 00:20:58 +02:00
|
|
|
"nvidia-tesla-k80"
|
2024-10-18 09:26:45 +02:00
|
|
|
"ollama"
|
|
|
|
"whisper"
|
2024-10-12 00:20:58 +02:00
|
|
|
"proxmox"
|
2024-10-18 09:27:24 +02:00
|
|
|
"networking"
|
2024-10-12 00:20:58 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
microvm = {
|
|
|
|
host.enable = true;
|
|
|
|
};
|
|
|
|
dgn-hardware = {
|
|
|
|
useZfs = true;
|
|
|
|
zfsPools = [
|
|
|
|
"dpool"
|
|
|
|
"ppool0"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# We are going to use CUDA here.
|
|
|
|
nixpkgs.config.cudaSupport = true;
|
|
|
|
hardware.graphics.enable = true;
|
|
|
|
|
2024-10-18 09:26:45 +02:00
|
|
|
services.netbird.enable = true;
|
|
|
|
networking.firewall.trustedInterfaces = [ "wt0" ];
|
2024-10-12 00:20:58 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
root = ./.;
|
|
|
|
}
|