some housekeeping

This commit is contained in:
Adithya 2024-06-02 23:35:58 +05:30
parent a9c11e0bff
commit bb3e35e9b6
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
4 changed files with 10 additions and 5 deletions

View file

@ -13,6 +13,7 @@ stdenvNoCC.mkDerivation {
src = ./.; src = ./.;
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ curl envsubst jq libsecret ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -25,6 +26,6 @@ stdenvNoCC.mkDerivation {
''; '';
postInstall = '' postInstall = ''
wrapProgram $out/bin/getpaper --prefix PATH : ${lib.makeBinPath [envsubst jq curl libsecret]} wrapProgram $out/bin/getpaper --prefix PATH : ${lib.makeBinPath [curl envsubst jq libsecret]}
''; '';
} }

View file

@ -14,6 +14,7 @@ stdenvNoCC.mkDerivation {
src = ./.; src = ./.;
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ hyprland kitty libnotify rofi-wayland tmux ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -30,7 +31,7 @@ stdenvNoCC.mkDerivation {
''; '';
postInstall = '' postInstall = ''
wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [libnotify rofi-wayland hyprland]} wrapProgram $out/bin/power-menu --prefix PATH : ${lib.makeBinPath [hyprland libnotify rofi-wayland]}
wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [tmux kitty rofi-wayland]} wrapProgram $out/bin/tmux-sessions --prefix PATH : ${lib.makeBinPath [kitty rofi-wayland tmux]}
''; '';
} }

View file

@ -1,6 +1,7 @@
{ lib { lib
, stdenvNoCC , stdenvNoCC
, makeWrapper , makeWrapper
, mpv
, kitty , kitty
, rofi-wayland , rofi-wayland
, ueberzugpp , ueberzugpp
@ -13,6 +14,7 @@ stdenvNoCC.mkDerivation {
src = ./.; src = ./.;
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ kitty mpv rofi-wayland ueberzugpp ytfzf ];
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
@ -26,6 +28,6 @@ stdenvNoCC.mkDerivation {
''; '';
postInstall = '' postInstall = ''
wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty ytfzf rofi-wayland ueberzugpp]} wrapProgram $out/bin/youtube --prefix PATH : ${lib.makeBinPath [kitty mpv rofi-wayland ueberzugpp ytfzf]}
''; '';
} }

View file

@ -18,6 +18,7 @@ let
wpaperctl = "${config.programs.wpaperd.package}/bin/wpaperctl"; wpaperctl = "${config.programs.wpaperd.package}/bin/wpaperctl";
wpctl = "${pkgs.wireplumber}/bin/wpctl"; wpctl = "${pkgs.wireplumber}/bin/wpctl";
yazi = "${pkgs.yazi}/bin/yazi"; yazi = "${pkgs.yazi}/bin/yazi";
youtube = "${extra-packages.youtube}/bin/youtube";
pictures = "${config.xdg.userDirs.pictures}"; pictures = "${config.xdg.userDirs.pictures}";
in in
@ -174,7 +175,7 @@ in
"SUPER_SHIFT,escape, exec, ${extra-packages.misc-scripts}/bin/power-menu" "SUPER_SHIFT,escape, exec, ${extra-packages.misc-scripts}/bin/power-menu"
"SUPER,f11, exec, ${extra-packages.misc-scripts}/bin/tmux-sessions" "SUPER,f11, exec, ${extra-packages.misc-scripts}/bin/tmux-sessions"
"SUPER_SHIFT,y, exec, ${extra-packages.youtube}/bin/youtube" "SUPER_SHIFT,y, exec, ${youtube}"
"SUPER_SHIFT,b, exec, ${extra-packages.rofi-bluetooth}/bin/rofi-bluetooth" "SUPER_SHIFT,b, exec, ${extra-packages.rofi-bluetooth}/bin/rofi-bluetooth"
"SUPER,escape, exec, ${loginctl} lock-session" "SUPER,escape, exec, ${loginctl} lock-session"