2024-05-30 16:54:58 -03:00
|
|
|
(
|
|
|
|
final: prev:
|
|
|
|
let
|
2024-08-17 11:47:48 -03:00
|
|
|
lib = prev.lib;
|
|
|
|
|
|
|
|
importScript = (_: path: import (path) { inherit (final) pkgs lib; });
|
|
|
|
wrapScript =
|
2024-05-30 16:54:58 -03:00
|
|
|
name: text: runtimeInputs:
|
2024-08-17 11:47:48 -03:00
|
|
|
final.runCommand name
|
|
|
|
{
|
|
|
|
nativeBuildInputs = [ final.makeWrapper ];
|
|
|
|
meta.mainProgram = name;
|
|
|
|
}
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ${text} $out/bin/${name}
|
|
|
|
wrapProgram $out/bin/${name} \
|
|
|
|
--suffix PATH : ${lib.makeBinPath runtimeInputs}
|
|
|
|
'';
|
|
|
|
createScripts = lib.mapAttrs (name: deps: wrapScript name ./${name} deps);
|
2023-08-07 19:58:05 -03:00
|
|
|
|
2024-08-17 11:47:48 -03:00
|
|
|
myPass = final.pass.withExtensions (ex: with ex; [ pass-otp ]);
|
2024-05-30 16:54:58 -03:00
|
|
|
in
|
2024-08-17 11:47:48 -03:00
|
|
|
with final;
|
|
|
|
createScripts {
|
2022-10-18 19:53:40 -03:00
|
|
|
br = [ ];
|
2024-05-30 16:54:58 -03:00
|
|
|
bmenu = [
|
2024-08-17 11:47:48 -03:00
|
|
|
bemenu
|
|
|
|
dhist
|
2024-05-30 16:54:58 -03:00
|
|
|
fish
|
|
|
|
j4-dmenu-desktop
|
|
|
|
jq
|
|
|
|
sway
|
|
|
|
];
|
|
|
|
down_meme = [
|
|
|
|
wl-clipboard
|
|
|
|
yt-dlp
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
wl-copy-file = [
|
|
|
|
wl-clipboard
|
|
|
|
fish
|
|
|
|
];
|
2022-10-18 20:04:46 -03:00
|
|
|
_diffr = [ diffr ];
|
2024-08-17 11:47:48 -03:00
|
|
|
_thunar-terminal = [ terminal ];
|
|
|
|
_sway_idle_toggle = [ swayidle ];
|
2024-05-30 16:54:58 -03:00
|
|
|
kak-pager = [
|
|
|
|
fish
|
2024-08-17 11:47:48 -03:00
|
|
|
_diffr
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
2024-08-17 11:47:48 -03:00
|
|
|
kak-man-pager = [ kak-pager ];
|
2024-05-30 16:54:58 -03:00
|
|
|
helix-pager = [
|
|
|
|
fish
|
2024-08-17 11:47:48 -03:00
|
|
|
_diffr
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
2024-08-17 11:47:48 -03:00
|
|
|
helix-man-pager = [ helix-pager ];
|
2024-05-30 16:54:58 -03:00
|
|
|
musmenu = [
|
|
|
|
mpc-cli
|
2024-08-17 11:47:48 -03:00
|
|
|
wdmenu
|
2024-05-30 16:54:58 -03:00
|
|
|
trash-cli
|
|
|
|
xdg-user-dirs
|
|
|
|
libnotify
|
|
|
|
sd
|
|
|
|
wl-clipboard
|
|
|
|
];
|
|
|
|
showkeys = [ ]; # This will not work unless programs.wshowkeys is enabled systemwide
|
2022-10-18 20:04:46 -03:00
|
|
|
terminal = [ alacritty ];
|
2023-02-08 17:12:54 -03:00
|
|
|
playerctl-status = [ playerctl ];
|
2024-05-30 16:54:58 -03:00
|
|
|
pass-export = [
|
|
|
|
pass2csv
|
|
|
|
gnupg
|
2024-08-19 00:02:36 -03:00
|
|
|
sd
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
|
|
|
wpass = [
|
2024-08-17 11:47:48 -03:00
|
|
|
wdmenu
|
2024-05-30 16:54:58 -03:00
|
|
|
fd
|
2024-08-17 11:47:48 -03:00
|
|
|
myPass
|
2024-05-30 16:54:58 -03:00
|
|
|
sd
|
|
|
|
wl-clipboard
|
|
|
|
wtype
|
|
|
|
];
|
|
|
|
screenshotsh = [
|
|
|
|
capitaine-cursors
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
jq
|
|
|
|
sway
|
|
|
|
wl-clipboard
|
|
|
|
xdg-user-dirs
|
|
|
|
];
|
|
|
|
volumesh = [
|
|
|
|
pulseaudio
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
pulse_sink = [
|
|
|
|
pulseaudio
|
|
|
|
pamixer
|
2024-08-17 11:47:48 -03:00
|
|
|
wdmenu
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
|
|
|
color_picker = [
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
wl-clipboard
|
|
|
|
libnotify
|
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
dzadd = [
|
|
|
|
procps
|
|
|
|
libnotify
|
2024-08-17 11:47:48 -03:00
|
|
|
wdmenu
|
2024-05-30 16:54:58 -03:00
|
|
|
jq
|
|
|
|
mpv
|
|
|
|
pqiv
|
|
|
|
python3Packages.deemix
|
|
|
|
mpc-cli
|
2024-08-17 11:47:48 -03:00
|
|
|
mpdDup
|
2024-05-30 16:54:58 -03:00
|
|
|
];
|
|
|
|
mpdDup = [
|
|
|
|
mpc-cli
|
|
|
|
perl
|
|
|
|
];
|
|
|
|
readQrCode = [
|
|
|
|
grim
|
|
|
|
zbar
|
|
|
|
wl-clipboard
|
|
|
|
];
|
2024-08-17 00:02:05 -03:00
|
|
|
powerplay-led-idle = [
|
2024-08-17 11:47:48 -03:00
|
|
|
bash
|
2024-08-17 00:02:05 -03:00
|
|
|
libinput
|
|
|
|
libratbag
|
2024-06-10 12:44:51 -03:00
|
|
|
];
|
2024-05-30 16:54:58 -03:00
|
|
|
}
|
2024-08-17 11:47:48 -03:00
|
|
|
// lib.mapAttrs importScript {
|
2024-05-30 16:54:58 -03:00
|
|
|
wdmenu = ./wdmenu.nix;
|
|
|
|
wlauncher = ./wlauncher.nix;
|
|
|
|
_gpg-unlock = ./_gpg-unlock.nix;
|
|
|
|
}
|
|
|
|
)
|