mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
21 lines
384 B
Nix
21 lines
384 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;
|
|
};
|
|
};
|
|
}
|