diff --git a/modules/virtualization/default.nix b/modules/virtualization/default.nix index 9c7be83e..51fe4fd4 100644 --- a/modules/virtualization/default.nix +++ b/modules/virtualization/default.nix @@ -1,5 +1,6 @@ { imports = [ ./virt-manager.nix + ./waydroid.nix ]; } diff --git a/modules/virtualization/waydroid.nix b/modules/virtualization/waydroid.nix new file mode 100644 index 00000000..5d3df5e3 --- /dev/null +++ b/modules/virtualization/waydroid.nix @@ -0,0 +1,13 @@ +{ outputs, options, config, lib, pkgs, ...}: +let + cfg = config.modules.virtualization.waydroid; +in +{ + options.modules.virtualization.waydroid = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + virtualisation.waydroid.enable = true; + }; +}