This commit is contained in:
2025-07-17 19:28:12 +09:00
commit ecb8bc951f
23 changed files with 709 additions and 0 deletions

23
services/virtual.nix Normal file
View File

@@ -0,0 +1,23 @@
# container and vm config
{ ... }: {
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
};
programs.virt-manager.enable = true;
services.k3s = {
enable = true;
clusterInit = true;
extraFlags =
"--cluster-cidr=10.42.0.0/16,2a10:3781:25ac:2::/64 --service-cidr=10.43.0.0/16,2a10:3781:25ac:3::/112 --flannel-iface enp5s0";
};
}