mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-14 00:59: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;
|
|
};
|
|
};
|
|
}
|