mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-13 00:49:44 +00:00
21 lines
399 B
Nix
21 lines
399 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
virtualization.enable = lib.mkEnableOption "enable virtualization";
|
|
};
|
|
config = lib.mkIf config.virtualization.enable {
|
|
virtualisation = {
|
|
docker.enable = true;
|
|
incus.enable = true;
|
|
libvirtd.enable = true;
|
|
lxc = {
|
|
enable = true;
|
|
lxcfs.enable = true;
|
|
};
|
|
waydroid.enable = true;
|
|
};
|
|
};
|
|
}
|