45 lines
760 B
Nix
45 lines
760 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;
|
|
|
|
incus.enable = true;
|
|
lxc.enable = true;
|
|
};
|
|
|
|
users.users.root.subUidRanges = [
|
|
{
|
|
startUid = 1000;
|
|
count = 1;
|
|
}
|
|
{
|
|
startUid = 1000000;
|
|
count = 65536;
|
|
}
|
|
];
|
|
|
|
users.users.root.subGidRanges = [
|
|
{
|
|
startGid = 1000;
|
|
count = 1;
|
|
}
|
|
{
|
|
startGid = 1000000;
|
|
count = 65536;
|
|
}
|
|
];
|
|
|
|
programs.virt-manager.enable = true;
|
|
virtualisation.virtualbox.host.enable = true;
|
|
}
|