Commit a99dfec2 authored by Nathan Henrie's avatar Nathan Henrie
Browse files

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
parent a4e0906b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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";