initial
This commit is contained in:
23
services/virtual.nix
Normal file
23
services/virtual.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user