From 098c4d08d7dff9673a1cf1af6b477b3595932f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Fri, 24 Oct 2025 19:36:13 -0400 Subject: [PATCH] nixos/waydroid: use waydroid-nftables by default if nftables is enabled --- nixos/doc/manual/release-notes/rl-2511.section.md | 2 ++ nixos/modules/virtualisation/waydroid.nix | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2511.section.md b/nixos/doc/manual/release-notes/rl-2511.section.md index 9189ed2088c8..33eaeeec5cec 100644 --- a/nixos/doc/manual/release-notes/rl-2511.section.md +++ b/nixos/doc/manual/release-notes/rl-2511.section.md @@ -305,6 +305,8 @@ and [release notes for v18](https://goteleport.com/docs/changelog/#1800-070325). - `vmalert` now supports multiple instances with the option `services.vmalert.instances."".enable` +- [`virtualisation.waydroid.package`](#opt-virtualisation.waydroid.package) now defaults to `waydroid-nftables` on systems with nftables enabled. + - [`services.victorialogs.package`](#opt-services.victorialogs.package) now defaults to `victorialogs`, as `victoriametrics` no longer contains the VictoriaLogs binaries. - The `services.traccar.settings` attribute has been reworked. Instead of the previous flat attribute set the new implementation uses nested attribute sets. You need to update you configuration manually. For instance, `services.traccar.settings.loggerConsole` becomes `services.traccar.settings.logger.console`. diff --git a/nixos/modules/virtualisation/waydroid.nix b/nixos/modules/virtualisation/waydroid.nix index a26bddc393ae..706ee115ba8c 100644 --- a/nixos/modules/virtualisation/waydroid.nix +++ b/nixos/modules/virtualisation/waydroid.nix @@ -25,7 +25,10 @@ in options.virtualisation.waydroid = { enable = lib.mkEnableOption "Waydroid"; - package = lib.mkPackageOption pkgs "waydroid" { }; + package = lib.mkPackageOption pkgs "waydroid" { } // { + default = if config.networking.nftables.enable then pkgs.waydroid-nftables else pkgs.waydroid; + defaultText = lib.literalExpression ''if config.networking.nftables.enable then pkgs.waydroid-nftables else pkgs.waydroid''; + }; }; config = lib.mkIf cfg.enable {