From a99dfec26018e1f6ac9066f7845c83f5ae4a9240 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 2 Dec 2025 08:56:46 -0700 Subject: [PATCH] nixos/espanso: reference the current configuration's package Using `pkgs.espanso-wayland` here may not be referencing the package the user has configured via `espanso.package`. This resolves a build failure when using an older nixpkgs and importing the more recent version of this module. Fixes https://github.com/NixOS/nixpkgs/issues/467178 --- nixos/modules/services/desktops/espanso.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nixos/modules/services/desktops/espanso.nix b/nixos/modules/services/desktops/espanso.nix index c2c2c2ca4d41..a58d886cfe7f 100644 --- a/nixos/modules/services/desktops/espanso.nix +++ b/nixos/modules/services/desktops/espanso.nix @@ -29,9 +29,7 @@ in capabilities = "cap_dac_override+p"; owner = "root"; group = "root"; - source = lib.getExe ( - pkgs.espanso-wayland.override { securityWrapperPath = config.security.wrapperDir; } - ); + source = lib.getExe (cfg.package.override { securityWrapperPath = config.security.wrapperDir; }); }; systemd.user.services.espanso = { description = "Espanso daemon";