refactor: lib.getExe
-> explicit bin path
This commit is contained in:
parent
91c43c61f9
commit
07b178ede6
3 changed files with 10 additions and 10 deletions
|
@ -39,8 +39,8 @@ in {
|
||||||
useGeoclue = false;
|
useGeoclue = false;
|
||||||
};
|
};
|
||||||
activationScript = let
|
activationScript = let
|
||||||
starship = lib.getExe config.programs.starship.package;
|
starship = "${config.programs.starship.package}/bin/starship";
|
||||||
zsh = lib.getExe config.programs.zsh.package;
|
zsh = "${config.programs.zsh.package}/bin/zsh";
|
||||||
in {
|
in {
|
||||||
dark = ''
|
dark = ''
|
||||||
${starship} config palette catppuccin_mocha
|
${starship} config palette catppuccin_mocha
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
name = "neovim";
|
name = "neovim";
|
||||||
paths = [pkgs.neovim-unwrapped];
|
paths = [pkgs.neovim-unwrapped];
|
||||||
buildInputs = [pkgs.makeWrapper pkgs.gcc];
|
buildInputs = [pkgs.makeWrapper pkgs.gcc];
|
||||||
postBuild = "wrapProgram $out/bin/nvim --prefix CC : ${pkgs.lib.getExe pkgs.gcc}";
|
postBuild = "wrapProgram $out/bin/nvim --prefix CC : ${pkgs.gcc}/bin/gcc";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
|
|
|
@ -61,7 +61,7 @@ in {
|
||||||
focus.mouseWarping = "container";
|
focus.mouseWarping = "container";
|
||||||
startup = [
|
startup = [
|
||||||
{
|
{
|
||||||
command = "${lib.getExe pkgs.autotiling} -l2";
|
command = "${pkgs.autotiling}/bin/autotiling -l2";
|
||||||
always = true;
|
always = true;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -82,8 +82,8 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
terminal = lib.getExe config.programs.wezterm.package;
|
terminal = "${config.programs.wezterm.package}/bin/wezterm";
|
||||||
menu = lib.getExe config.programs.rofi.package;
|
menu = "${config.programs.rofi.package}/bin/rofi";
|
||||||
defaultWorkspace = "workspace number 1";
|
defaultWorkspace = "workspace number 1";
|
||||||
input."type:keyboard".xkb_options = "ctrl:nocaps,compose:ralt";
|
input."type:keyboard".xkb_options = "ctrl:nocaps,compose:ralt";
|
||||||
output."*" = {
|
output."*" = {
|
||||||
|
@ -96,9 +96,9 @@ in {
|
||||||
modFocus = "${mod}+Ctrl";
|
modFocus = "${mod}+Ctrl";
|
||||||
hyper = "Mod4+Mod1+Shift+Ctrl";
|
hyper = "Mod4+Mod1+Shift+Ctrl";
|
||||||
|
|
||||||
pcmanfm = lib.getExe pkgs.pcmanfm;
|
pcmanfm = "${pkgs.pcmanfm}/bin/pcmanfm";
|
||||||
screenshot = "${lib.getExe pkgs.sway-contrib.grimshot} copy area";
|
screenshot = "${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
|
||||||
playerctl = lib.getExe pkgs.playerctl;
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
wpctl = pkgs.wireplumber + "/bin/wpctl";
|
wpctl = pkgs.wireplumber + "/bin/wpctl";
|
||||||
in {
|
in {
|
||||||
"${mod}+Shift+b" = "border none";
|
"${mod}+Shift+b" = "border none";
|
||||||
|
@ -188,7 +188,7 @@ in {
|
||||||
# rofi instead of drun
|
# rofi instead of drun
|
||||||
"${mod}+space" = "exec --no-startup-id ${menu} -show drun -dpi $dpi";
|
"${mod}+space" = "exec --no-startup-id ${menu} -show drun -dpi $dpi";
|
||||||
# 1password
|
# 1password
|
||||||
"${mod}+Shift+space" = "exec ${lib.getExe pkgs._1password-gui} --quick-access";
|
"${mod}+Shift+space" = "exec ${pkgs._1password-gui}/bin/1password-gui --quick-access";
|
||||||
|
|
||||||
# audio
|
# audio
|
||||||
"XF86AudioRaiseVolume" = "exec --no-startup-id ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.0";
|
"XF86AudioRaiseVolume" = "exec --no-startup-id ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 5%+ -l 1.0";
|
||||||
|
|
Loading…
Reference in a new issue