hand7s: migrate from ${pkgs}/bin/ paths to ${lib.getExe pkgs}

Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
s0me1newithhand7s 2025-06-13 13:06:24 +03:00
parent fc182636e3
commit e897fb4e87
No known key found for this signature in database
13 changed files with 86 additions and 86 deletions

View file

@ -1,9 +1,9 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
programs = { programs = {
fuzzel = { fuzzel = {
settings = { settings = {
main = { main = {
terminal = "${pkgs.ghostty}/bin/ghostty"; terminal = "${lib.getExe pkgs.ghostty}";
layer = "overlay"; layer = "overlay";
prompt = " > "; prompt = " > ";
}; };

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
programs = { programs = {
ghostty = { ghostty = {
enableFishIntegration = true; enableFishIntegration = true;
@ -6,7 +6,7 @@
settings = { settings = {
title = "spooky scary tty"; title = "spooky scary tty";
command = "${pkgs.fish}/bin/fish --login --interactive"; command = "${lib.getExe pkgs.fish} --login --interactive";
confirm-close-surface = false; confirm-close-surface = false;

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
programs = { programs = {
helix = { helix = {
enable = true; enable = true;
@ -22,7 +22,7 @@
languages = { languages = {
language-servers = { language-servers = {
nixd = { nixd = {
command = "${pkgs.nixd}/bin/nixd"; command = "${lib.getExe pkgs.nixd}";
args = [ args = [
"--inlay-hints=true" "--inlay-hints=true"
]; ];
@ -40,7 +40,7 @@
}; };
formatter = { formatter = {
command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt-rfc-style"; command = "${lib.getExe pkgs.nixfmt-rfc-style}";
args = [ args = [
"--indent=4" "--indent=4"
]; ];

View file

@ -61,12 +61,12 @@
scalingPriority = "hyprland"; scalingPriority = "hyprland";
tear = false; tear = false;
terminal = "${pkgs.ghostty}/bin/ghostty"; terminal = "${lib.getExe pkgs.ghostty}";
dummy = true; dummy = true;
hyprpanel = { hyprpanel = {
restartAgs = true; restartAgs = true;
restartCommand = "${pkgs.systemd}/bin/systemctl --user restart hyprpanel.service"; restartCommand = "${lib.getExe' pkgs.systemd "systemctl"} --user restart hyprpanel.service";
}; };
bar = { bar = {
@ -116,9 +116,9 @@
volume = { volume = {
label = true; label = true;
scrollDown = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"; scrollDown = "${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%-";
scrollUp = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"; scrollUp = "${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%+";
rightClick = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; rightClick = "${lib.getExe' pkgs.wireplumber "wpctl"} set-mute @DEFAULT_AUDIO_SINK@ toggle";
}; };
windowtitle = { windowtitle = {
@ -225,7 +225,7 @@
icon = "󰌌"; icon = "󰌌";
label = true; label = true;
labelType = "code"; labelType = "code";
rightClick = "${pkgs.hyprland}/bin/hyprctl switchxkblayout monsgeek-monsgeek-keyboard next"; rightClick = "${lib.getExe' pkgs.hyprland "hyprctl"} switchxkblayout monsgeek-monsgeek-keyboard next";
}; };
netstat = { netstat = {
@ -321,7 +321,7 @@
shortcuts = { shortcuts = {
left = { left = {
shortcut1 = { shortcut1 = {
command = "${pkgs.google-chrome}/bin/google-chrome-stable"; command = "${lib.getExe pkgs.google-chrome}";
icon = ""; icon = "";
tooltip = "Google Chrome"; tooltip = "Google Chrome";
}; };
@ -333,7 +333,7 @@
}; };
shortcut3 = { shortcut3 = {
command = "${pkgs.discord}/bin/discord"; command = "${lib.getExe pkgs.discord}";
icon = ""; icon = "";
tooltip = "Discord"; tooltip = "Discord";
}; };
@ -347,13 +347,13 @@
right = { right = {
shortcut1 = { shortcut1 = {
command = "${pkgs.fuzzel}/bin/fuzzel"; command = "${lib.getExe pkgs.fuzzel}";
icon = ""; icon = "";
tooltip = "Search"; tooltip = "Search";
}; };
shortcut3 = { shortcut3 = {
command = "sleep 2; ${pkgs.grimblast}/bin/grimblast --notify --freeze copysave area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png"; command = "sleep 2; ${lib.getExe pkgs.grimblast} --notify --freeze copysave area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png";
icon = "󰄀"; icon = "󰄀";
tooltip = "Screenshot"; tooltip = "Screenshot";
}; };
@ -389,10 +389,10 @@
power = { power = {
confirmation = true; confirmation = true;
showLabel = true; showLabel = true;
logout = "${pkgs.hyprland}hyprctl dispatch exit"; logout = "${lib.getExe' pkgs.hyprland "hyprctl"} dispatch exit";
reboot = "${pkgs.systemd}/bin/systemctl reboot"; reboot = "${lib.getExe' pkgs.systemd "systemctl"} reboot";
shutdown = "${pkgs.systemd}/bin/systemctl poweroff"; shutdown = "${lib.getExe' pkgs.systemd "systemctl"} poweroff";
sleep = "${pkgs.systemd}/bin/systemctl suspend"; sleep = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
}; };
volume = { volume = {

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
programs = { programs = {
yazi = { yazi = {
enable = true; enable = true;
@ -26,7 +26,7 @@
opener = { opener = {
play = [ play = [
{ {
run = "${pkgs.mpv}/bin/mpv ''$@''"; run = "${lib.getExe pkgs.mpv} ''$@''";
block = true; block = true;
for = "unix"; for = "unix";
} }
@ -34,7 +34,7 @@
edit = [ edit = [
{ {
run = "${pkgs.helix}/bin/hx ''$@''"; run = "${lib.getExe pkgs.helix} ''$@''";
block = true; block = true;
for = "unix"; for = "unix";
} }
@ -42,7 +42,7 @@
open = [ open = [
{ {
run = "${pkgs.xdg-utils}/bin/xdg-open ''$@''"; run = "${lib.getExe' pkgs.xdg-utils "xdg-open"} ''$@''";
block = true; block = true;
for = "unix"; for = "unix";
} }

View file

@ -13,25 +13,25 @@
settings = { settings = {
general = { general = {
before_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms off"; before_sleep_cmd = "${lib.getExe' pkgs.hyprland "hyprctl"} dispatch dpms off";
after_sleep_cmd = "${pkgs.hyprland}/bin/hyprctl dispatch dpms on"; after_sleep_cmd = "${lib.getExe' pkgs.hyprland "hyprctl"} dispatch dpms on";
}; };
listener = [ listener = [
{ {
timeout = 300; timeout = 300;
on-timeout = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; on-timeout = "${lib.getExe pkgs.brightnessctl} -s set 10";
on-resume = "${pkgs.brightnessctl}/bin/brightnessctl -r"; on-resume = "${lib.getExe pkgs.brightnessctl} -r";
} }
{ {
timeout = 600; timeout = 600;
on-timeout = "${pkgs.hyprlock}/bin/hyprlock"; on-timeout = "${lib.getExe pkgs.hyprlock}";
} }
{ {
timeout = 900; timeout = 900;
on-timeout = "${pkgs.systemd}/bin/systemctl suspend"; on-timeout = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
} }
]; ];
}; };

View file

@ -14,35 +14,35 @@
events = [ events = [
{ {
event = "lock"; event = "lock";
command = "${pkgs.swaylock}/bin/swaylock"; command = "${lib.getExe pkgs.swaylock}";
} }
{ {
event = "before-sleep"; event = "before-sleep";
command = "${pkgs.sway}/bin/swaymsg 'output * power off'"; command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power off'";
} }
{ {
event = "after-resume"; event = "after-resume";
command = "${pkgs.sway}/bin/swaymsg 'output * power on'"; command = "${lib.getExe' pkgs.sway "swaymsg"} 'output * power on'";
} }
]; ];
timeouts = [ timeouts = [
{ {
timeout = 300; timeout = 300;
command = "${pkgs.brightnessctl}/bin/brightnessctl -s set 10"; command = "${libgetExe pkgs.brightnessctl} -s set 10";
resumeCommand = "${pkgs.brightnessctl}/bin/brightnessctl -r"; resumeCommand = "${libgetExe pkgs.brightnessctl} -r";
} }
{ {
timeout = 600; timeout = 600;
command = "${pkgs.swaylock}/bin/swaylock"; command = "${lib.getExe pkgs.swaylock}";
} }
{ {
timeout = 900; timeout = 900;
command = "${pkgs.systemd}/bin/systemctl suspend"; command = "${lib.getExe' pkgs.systemd "systemctl"} suspend";
} }
]; ];
}; };

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
systemd = { systemd = {
user = { user = {
services = { services = {
@ -9,7 +9,7 @@
}; };
Service = { Service = {
ExecStart = "${pkgs.hyprpanel}/bin/hyprpanel"; ExecStart = "${lib.getExe pkgs.hyprpanel}";
Restart = "always"; Restart = "always";
RestartSec = 1; RestartSec = 1;
}; };

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
systemd = { systemd = {
user = { user = {
services = { services = {
@ -9,7 +9,7 @@
}; };
Service = { Service = {
ExecStart = "${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent"; ExecStart = "${lib.getExe pkgs.hyprpolkitagent}";
Restart = "always"; Restart = "always";
RestartSec = 10; RestartSec = 10;
}; };

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs,lib, ...}: {
systemd = { systemd = {
user = { user = {
services = { services = {
@ -9,7 +9,7 @@
}; };
Service = { Service = {
ExecStart = "${pkgs.yambar}/bin/yambar"; ExecStart = "${lib.getExe pkgs.yambar}";
Restart = "always"; Restart = "always";
RestartSec = 1; RestartSec = 1;
}; };

View file

@ -99,22 +99,22 @@
}; };
exec-once = [ exec-once = [
"${pkgs.systemd}/bin/systemctl --user start hyprpaper.service" "${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpaper.service"
"${pkgs.systemd}/bin/systemctl --user start hypridle.service" "${lib.getExe' pkgs.systemd "systemctl"} --user start hypridle.service"
"${pkgs.systemd}/bin/systemctl --user start hyprpolkitagent.service" "${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpolkitagent.service"
"${pkgs.systemd}/bin/systemctl --user start hyprpanel.service" "${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpanel.service"
]; ];
bind = [ bind = [
"ALT, return, exec, ${pkgs.ghostty}/bin/ghostty" "ALT, return, exec, ${lib.getExe pkgs.ghostty}"
"ALT, Q, killactive," "ALT, Q, killactive,"
"ALT, S, exec, ${pkgs.fuzzel}/bin/fuzzel" "ALT, S, exec, ${lib.getExe pkgs.fuzzel}"
"ALT, F, fullscreen, 0" "ALT, F, fullscreen, 0"
"ALT, L, exec, ${pkgs.hyprlock}/bin/hyprlock" "ALT, L, exec, ${lib.getExe pkgs.hyprlock}"
"ALT SHIFT, E, exit," "ALT SHIFT, E, exit,"
"ALT SHIFT, space, togglefloating, active" "ALT SHIFT, space, togglefloating, active"
"ALT SHIFT, S, exec, ${pkgs.grimblast}/bin/grimblast --notify --freeze copysave area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png" "ALT SHIFT, S, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png"
"ALT, left, movefocus, l" "ALT, left, movefocus, l"
"ALT, right, movefocus, r" "ALT, right, movefocus, r"
@ -150,18 +150,18 @@
]; ];
bindel = [ bindel = [
", XF86AudioRaiseVolume, exec, ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+" ", XF86AudioRaiseVolume, exec, ${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" ", XF86AudioLowerVolume, exec, ${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%-" ", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} set 5%-"
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +5%" ", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl}l set +5%"
]; ];
bindl = [ bindl = [
", XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause" ", XF86AudioPlay, exec, ${lib.getExe pkgs.playerctl} play-pause"
", XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl previous" ", XF86AudioPrev, exec, ${lib.getExe pkgs.playerctl} previous"
", XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next" ", XF86AudioNext, exec, ${lib.getExe pkgs.playerctl} next"
", XF86AudioMute, exec, ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" ", XF86AudioMute, exec, ${lib.getExe' pkgs.wireplumber "wpctl"} set-mute @DEFAULT_AUDIO_SINK@ toggle"
"ALT, TAB, hyprexpo:expo, toggle" "ALT, TAB, hyprexpo:expo, toggle"
]; ];

View file

@ -98,12 +98,12 @@
}; };
extraConfig = '' extraConfig = ''
${pkgs.river}/bin/riverctl keyboard-layout -options "grp:caps_toggle" "us,ru" ${lib.getExe' pkgs.river "riverctl"} keyboard-layout -options "grp:caps_toggle" "us,ru"
${pkgs.river}/bin/riverctl spawn ${pkgs.systemd}/bin/systemctl --user start hyprpaper.service ${lib.getExe' pkgs.river "riverctl"} spawn ${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpaper.service
${pkgs.river}/bin/riverctl spawn ${pkgs.systemd}/bin/systemctl --user start hyprpolkitagent.service ${lib.getExe' pkgs.river "riverctl"} spawn ${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpolkitagent.service
${pkgs.river}/bin/riverctl spawn ${pkgs.systemd}/bin/systemctl --user start yambar.service ${lib.getExe' pkgs.river "riverctl"} spawn ${lib.getExe' pkgs.systemd "systemctl"} --user start yambar.service
${pkgs.river}/bin/riverctl spawn ${pkgs.wayidle}/bin/wayidle -t=300 ${pkgs.brightnessctl}/bin/brightnessctl -s set 10 ${lib.getExe' pkgs.river "riverctl"} spawn ${lib.getExe pkgs.wayidle} -t=300 ${lib.getExe pkgs.brightnessctl} -s set 10
${pkgs.river}/bin/riverctl spawn ${pkgs.wayidle}/bin/wayidle -t=600 ${pkgs.waylock}/bin/waylock ${lib.getExe' pkgs.river "riverctl"} spawn ${lib.getExe pkgs.wayidle} -t=600 ${lib.getExe pkgs.waylock}
''; '';
}; };
}; };

View file

@ -60,43 +60,43 @@
startup = [ startup = [
{ {
command = "${pkgs.systemd}/bin/systemctl --user start hyprpaper.service"; command = "${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpaper.service";
} }
{ {
command = "${pkgs.systemd}/bin/systemctl --user start hypridle.service"; command = "${lib.getExe' pkgs.systemd "systemctl"} --user start hypridle.service";
} }
{ {
command = "${pkgs.systemd}/bin/systemctl --user start hyprpolkitagent.service"; command = "${lib.getExe' pkgs.systemd "systemctl"} --user start hyprpolkitagent.service";
} }
{ {
command = "${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit"; command = "${lib.getExe pkgs.sway-audio-idle-inhibit}";
} }
{ {
command = "${pkgs.autotiling-rs}/bin/autotiling-rs"; command = "${lib.getExe pkgs.autotiling-rs}";
} }
{ {
command = "${pkgs.swaykbdd}/bin/swaykbdd"; command = "${lib.getExe pkgs.swaykbdd}";
} }
{ {
command = "${pkgs.systemd}/bin/systemctl --user start yambar.service"; command = "${lib.getExe' pkgs.systemd "systemctl"} --user start yambar.service";
} }
]; ];
keybindings = lib.mkOptionDefault { keybindings = lib.mkOptionDefault {
"Mod1+q" = "kill"; "Mod1+q" = "kill";
"Mod1+s" = "exec ${pkgs.fuzzel}/bin/fuzzel"; "Mod1+s" = "exec ${lib.getExe pkgs.fuzzel}";
"Mod1+Return" = "exec ${pkgs.ghostty}/bin/ghostty"; "Mod1+Return" = "exec ${lib.getExe pkgs.ghostty}";
"Mod1+l" = "exec ${pkgs.swaylock}/bin/swaylock"; "Mod1+l" = "exec ${lib.getExe pkgs.swaylock}";
"Mod1+f" = "fullscreen toggle"; "Mod1+f" = "fullscreen toggle";
"Mod1+Shift+s" = "exec ${pkgs.sway-contrib.grimshot}/bin/grimshot --notify copy area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png"; "Mod1+Shift+s" = "exec ${lib.getExe pkgs.sway-contrib.grimshot} --notify copy area /home/hand7s/Pictures/Screenshots/$(date '+%y%m%d_%H-%M-%s').png";
"Mod1+Shift+e" = "exec ${pkgs.sway}/bin/swaymsg exit"; "Mod1+Shift+e" = "exec ${lib.getExe' pkgs.sway "swaymsg"} exit";
"Mod1+Space" = "floating toggle"; "Mod1+Space" = "floating toggle";
"Mod1+r" = "mode resize"; "Mod1+r" = "mode resize";
@ -129,16 +129,16 @@
"Mod1+Shift+0" = "move container to workspace number 10"; "Mod1+Shift+0" = "move container to workspace number 10";
"Mod1+Shift+h" = "move scratchpad"; "Mod1+Shift+h" = "move scratchpad";
"XF86AudioRaiseVolume" = "exec ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"; "XF86AudioRaiseVolume" = "exec ${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%+";
"XF86AudioLowerVolume" = "exec ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"; "XF86AudioLowerVolume" = "exec ${lib.getExe' pkgs.wireplumber "wpctl"} set-volume @DEFAULT_AUDIO_SINK@ 5%-";
"XF86AudioMute" = "exec ${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; "XF86AudioMute" = "exec ${lib.getExe' pkgs.wireplumber "wpctl"} set-mute @DEFAULT_AUDIO_SINK@ toggle";
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause"; "XF86AudioPlay" = "exec ${lib.getExe pkgs.playerctl} play-pause";
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous"; "XF86AudioPrev" = "exec ${lib.getExe pkgs.playerctl} previous";
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next"; "XF86AudioNext" = "exec ${lib.getExe pkgs.playerctl} next";
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"; "XF86MonBrightnessDown" = "exec ${lib.getExe pkgs.brightnessctl} set 5%-";
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%"; "XF86MonBrightnessUp" = "exec $${lib.getExe pkgs.brightnessctl} set +5%";
}; };
modes = { modes = {