mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
18 lines
346 B
Nix
18 lines
346 B
Nix
{
|
|
flake.modules.nixos.virtualisation = {
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.tnix.virtualisation;
|
|
in {
|
|
options.tnix.virtualisation.waydroid = {
|
|
enable = lib.mkEnableOption "Waydroid Android container";
|
|
};
|
|
|
|
config = lib.mkIf cfg.waydroid.enable {
|
|
virtualisation.waydroid.enable = true;
|
|
};
|
|
};
|
|
}
|