mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 10:16:31 +05:30
feat(virtualisation): setup modules
This commit is contained in:
20
modules/nixos/virtualisation/waydroid.nix
Normal file
20
modules/nixos/virtualisation/waydroid.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user