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
This commit is contained in:
Nathan Henrie 2025-12-02 08:56:46 -07:00
commit a99dfec260

View file

@ -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";