From d3f0fe0539e694fa1649d8b24330edaf27a5469b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 8 May 2023 13:03:20 +0200 Subject: [PATCH] refactor(hyprland): use getExe --- modules/programs/hyprland/default.nix | 6 +++--- modules/programs/nvim/default.nix | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/programs/hyprland/default.nix b/modules/programs/hyprland/default.nix index 0be3db8..98b41d1 100644 --- a/modules/programs/hyprland/default.nix +++ b/modules/programs/hyprland/default.nix @@ -88,11 +88,11 @@ in events = [ { event = "before-sleep"; - command = "${pkgs.swaylock}/bin/swaylock -fF"; + command = "${getExe pkgs.swaylock} -fF"; } { event = "lock"; - command = "${pkgs.swaylock}/bin/swaylock -fF"; + command = "${getExe pkgs.swaylock} -fF"; } ]; timeouts = [ @@ -132,7 +132,7 @@ in wantedBy = [ "graphical-session.target" ]; after = [ "graphical-session.target" ]; serviceConfig = { - ExecStart = "${pkgs.hyprpaper}/bin/hyprpaper -c ${config}"; + ExecStart = "${getExe pkgs.hyprpaper} -c ${config}"; RestartSec = "1s"; Restart = "on-failure"; }; diff --git a/modules/programs/nvim/default.nix b/modules/programs/nvim/default.nix index 092636b..805e88b 100644 --- a/modules/programs/nvim/default.nix +++ b/modules/programs/nvim/default.nix @@ -94,3 +94,4 @@ in }; }; } +