26 lines
485 B
Nix
26 lines
485 B
Nix
{lib, pkgs, config, ...}: {
|
|
imports = [
|
|
../options.nix
|
|
];
|
|
|
|
virtualisation = lib.mkIf config.enableVirtualisation {
|
|
libvirtd = {
|
|
enable = true;
|
|
qemu = {
|
|
package = pkgs.qemu_kvm;
|
|
runAsRoot = true;
|
|
swtpm.enable = true;
|
|
};
|
|
};
|
|
|
|
docker = {
|
|
enable = true;
|
|
# Use the rootless mode - run Docker daemon as non-root user
|
|
rootless = {
|
|
enable = true;
|
|
setSocketVariable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|