25 lines
581 B
Nix
25 lines
581 B
Nix
# container and vm config
|
|
|
|
{ ... }: {
|
|
virtualisation = {
|
|
containers.enable = true;
|
|
podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
dockerSocket.enable = 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";
|
|
# };
|
|
}
|