mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add virtualisation option
This commit is contained in:
parent
ea040a6d5e
commit
7dfe959bcc
1 changed files with 18 additions and 9 deletions
|
@ -1,12 +1,21 @@
|
|||
_: {
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
incus.enable = true;
|
||||
libvirtd.enable = true;
|
||||
lxc = {
|
||||
enable = true;
|
||||
lxcfs.enable = true;
|
||||
{
|
||||
config,
|
||||
libs,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
virtualisation.enable = lib.mkEnableOption "enable virtualisation";
|
||||
};
|
||||
config = lib.mkIf config.virtualisation.enable {
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
incus.enable = true;
|
||||
libvirtd.enable = true;
|
||||
lxc = {
|
||||
enable = true;
|
||||
lxcfs.enable = true;
|
||||
};
|
||||
waydroid.enable = true;
|
||||
};
|
||||
waydroid.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue