waydroid module

This commit is contained in:
Sakooooo 2024-09-06 08:01:48 +04:00
parent ea33a5a5f7
commit 19d83d8e97
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{
imports = [
./virt-manager.nix
./waydroid.nix
];
}

View file

@ -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;
};
}