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