use getExe everywhere
This commit is contained in:
parent
876a4f09b8
commit
a090dbe73e
7 changed files with 12 additions and 12 deletions
|
|
@ -76,7 +76,7 @@ let
|
|||
hdr=${lib.escapeShellArg headerFile}
|
||||
if [ -r "$hdr" ]; then
|
||||
${exports} export OTEL_EXPORTER_OTLP_HEADERS="$(cat "$hdr")"
|
||||
export OTEL_RESOURCE_ATTRIBUTES=${lib.escapeShellArg resourceAttributes}",host.name=$(${pkgs.coreutils}/bin/uname -n)"
|
||||
export OTEL_RESOURCE_ATTRIBUTES=${lib.escapeShellArg resourceAttributes}",host.name=$(${lib.getExe' pkgs.coreutils "uname"} -n)"
|
||||
fi
|
||||
|
||||
exec ${claude-code}/bin/claude "$@"
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@
|
|||
];
|
||||
|
||||
home.file = {
|
||||
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
|
||||
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.lib.getExe pkgs.fsnotifier}";
|
||||
};
|
||||
|
||||
services.poweralertd.enable = true;
|
||||
|
|
|
|||
|
|
@ -180,8 +180,8 @@
|
|||
"Mod+Shift+Numbersign".action.show-hotkey-overlay = { };
|
||||
|
||||
# Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
"Mod+T".action.spawn = "${lib.getBin pkgs.gnome-console}/bin/kgx";
|
||||
"Mod+D".action.spawn = "${lib.getBin config.programs.fuzzel.package}/bin/fuzzel";
|
||||
"Mod+T".action.spawn = lib.getExe pkgs.gnome-console;
|
||||
"Mod+D".action.spawn = lib.getExe config.programs.fuzzel.package;
|
||||
|
||||
# You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||
# Note: the entire command goes as a single argument in the end.
|
||||
|
|
@ -430,7 +430,7 @@
|
|||
"Mod+O".action.toggle-overview = { };
|
||||
|
||||
"Super+Alt+L" = {
|
||||
action.spawn = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
action.spawn = "${lib.getExe' pkgs.systemd "loginctl"} lock-session";
|
||||
allow-when-locked = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
services.swayidle =
|
||||
let
|
||||
lock-command = "${pkgs.systemd}/bin/loginctl lock-session";
|
||||
lock-command = "${pkgs.lib.getExe' pkgs.systemd "loginctl"} lock-session";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
|
|
@ -14,11 +14,11 @@
|
|||
}
|
||||
{
|
||||
timeout = 60 * 10;
|
||||
command = "${pkgs.systemd}/bin/systemctl suspend";
|
||||
command = "${pkgs.lib.getExe' pkgs.systemd "systemctl"} suspend";
|
||||
}
|
||||
];
|
||||
events = {
|
||||
before-sleep = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
|
||||
before-sleep = "${pkgs.lib.getExe pkgs.playerctl} pause; ${lock-command}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue