infrastructure/machines/krz01/_configuration.nix
sinavir 3c445ab4c7
All checks were successful
lint / check (push) Successful in 23s
build configuration / build_and_cache_web01 (push) Successful in 1m41s
build configuration / build_and_cache_bridge01 (push) Successful in 1m2s
Check meta / check_meta (push) Successful in 20s
Check meta / check_dns (push) Successful in 20s
build configuration / build_and_cache_storage01 (push) Successful in 1m28s
build configuration / build_and_cache_geo01 (push) Successful in 1m11s
build configuration / build_and_cache_rescue01 (push) Successful in 1m21s
build configuration / build_and_cache_compute01 (push) Successful in 1m49s
build configuration / build_and_cache_krz01 (push) Successful in 1m49s
build configuration / build_and_cache_geo02 (push) Successful in 1m4s
build configuration / build_and_cache_vault01 (push) Successful in 1m19s
build configuration / build_and_cache_web03 (push) Successful in 1m5s
build configuration / build_and_cache_web02 (push) Successful in 1m10s
feat(networking): Add a bridge to connect VMs to the world
2024-10-17 17:56:09 +02:00

41 lines
782 B
Nix

{ config, lib, ... }:
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
# "microvm-ml01"
# "microvm-router01"
"nvidia-tesla-k80"
"ollama"
"whisper"
"proxmox"
"networking"
];
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;
services.netbird.enable = true;
networking.firewall.trustedInterfaces = [ "wt0" ];
};
root = ./.;
}