From f2b7d29e939dc9058e83e0ef9dffa0423bccee5d Mon Sep 17 00:00:00 2001 From: Eman Resu Date: Sun, 19 Jul 2026 22:28:29 -0400 Subject: [PATCH] nixos/pipewire: partially apply hasPrefix call --- nixos/modules/services/desktops/pipewire/pipewire.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/desktops/pipewire/pipewire.nix b/nixos/modules/services/desktops/pipewire/pipewire.nix index fb72bd695cec..8d4b0a608d0d 100644 --- a/nixos/modules/services/desktops/pipewire/pipewire.nix +++ b/nixos/modules/services/desktops/pipewire/pipewire.nix @@ -42,6 +42,8 @@ let enable32BitAlsaPlugins = cfg.alsa.support32Bit && pkgs.stdenv.hostPlatform.isx86_64 && pkgs.pkgsi686Linux.pipewire != null; + inPipewireDirectory = hasPrefix "pipewire/"; + # The package doesn't output to $out/lib/pipewire directly so that the # overlays can use the outputs to replace the originals in FHS environments. # @@ -383,7 +385,7 @@ in assertion = length ( attrNames ( - filterAttrs (name: value: hasPrefix "pipewire/" name || name == "pipewire") config.environment.etc + filterAttrs (name: value: inPipewireDirectory name || name == "pipewire") config.environment.etc ) ) == 1; message = "Using `environment.etc.\"pipewire<...>\"` directly is no longer supported. Use `services.pipewire.extraConfig` or `services.pipewire.configPackages` instead.";