2024-05-30 16:54:58 -03:00
|
|
|
(
|
|
|
|
final: prev:
|
|
|
|
with prev;
|
|
|
|
let
|
|
|
|
import_script = (_: path: import (path) { inherit pkgs lib; });
|
|
|
|
create_script = (
|
|
|
|
name: text: runtimeInputs:
|
|
|
|
let
|
|
|
|
script_body = pkgs.writeTextFile {
|
|
|
|
inherit name;
|
|
|
|
executable = true;
|
|
|
|
text = ''
|
|
|
|
${builtins.readFile text}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in
|
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
inherit name runtimeInputs;
|
|
|
|
text = ''exec ${script_body} "$@"'';
|
|
|
|
checkPhase = "";
|
|
|
|
})
|
|
|
|
);
|
|
|
|
create_scripts = lib.mapAttrs (name: deps: create_script name ./${name} deps);
|
2023-08-07 19:58:05 -03:00
|
|
|
|
2024-05-30 16:54:58 -03:00
|
|
|
pass = pkgs.pass.withExtensions (ex: with ex; [ pass-otp ]);
|
|
|
|
in
|
|
|
|
create_scripts {
|
2022-10-18 19:53:40 -03:00
|
|
|
br = [ ];
|
2024-05-30 16:54:58 -03:00
|
|
|
bmenu = [
|
|
|
|
final.bemenu
|
|
|
|
final.dhist
|
|
|
|
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 ];
|
2022-12-22 11:12:06 -03:00
|
|
|
_thunar-terminal = [ final.terminal ];
|
2023-05-04 19:32:12 -03:00
|
|
|
_sway_idle_toggle = [ final.swayidle ];
|
2024-05-30 16:54:58 -03:00
|
|
|
kak-pager = [
|
|
|
|
fish
|
|
|
|
final._diffr
|
|
|
|
];
|
2022-11-07 23:57:34 -03:00
|
|
|
kak-man-pager = [ final.kak-pager ];
|
2024-05-30 16:54:58 -03:00
|
|
|
helix-pager = [
|
|
|
|
fish
|
|
|
|
final._diffr
|
|
|
|
];
|
2023-05-11 11:20:47 -03:00
|
|
|
helix-man-pager = [ final.helix-pager ];
|
2024-05-30 16:54:58 -03:00
|
|
|
musmenu = [
|
|
|
|
mpc-cli
|
|
|
|
final.wdmenu
|
|
|
|
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
|
|
|
|
];
|
|
|
|
wpass = [
|
|
|
|
final.wdmenu
|
|
|
|
fd
|
|
|
|
pass
|
|
|
|
sd
|
|
|
|
wl-clipboard
|
|
|
|
wtype
|
|
|
|
];
|
|
|
|
screenshotsh = [
|
|
|
|
capitaine-cursors
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
jq
|
|
|
|
sway
|
|
|
|
wl-clipboard
|
|
|
|
xdg-user-dirs
|
|
|
|
];
|
|
|
|
volumesh = [
|
|
|
|
pulseaudio
|
|
|
|
libnotify
|
|
|
|
];
|
|
|
|
pulse_sink = [
|
|
|
|
pulseaudio
|
|
|
|
pamixer
|
|
|
|
final.wdmenu
|
|
|
|
];
|
|
|
|
color_picker = [
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
wl-clipboard
|
|
|
|
libnotify
|
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
dzadd = [
|
|
|
|
procps
|
|
|
|
libnotify
|
|
|
|
final.wdmenu
|
|
|
|
jq
|
|
|
|
mpv
|
|
|
|
pqiv
|
|
|
|
python3Packages.deemix
|
|
|
|
mpc-cli
|
|
|
|
final.mpdDup
|
|
|
|
];
|
|
|
|
mpdDup = [
|
|
|
|
mpc-cli
|
|
|
|
perl
|
|
|
|
];
|
|
|
|
readQrCode = [
|
|
|
|
grim
|
|
|
|
zbar
|
|
|
|
wl-clipboard
|
|
|
|
];
|
2024-06-10 12:44:51 -03:00
|
|
|
auto_connect_gamepad = [
|
|
|
|
bluez
|
|
|
|
coreutils
|
|
|
|
gnugrep
|
|
|
|
];
|
2024-05-30 16:54:58 -03:00
|
|
|
}
|
|
|
|
// lib.mapAttrs import_script {
|
|
|
|
wdmenu = ./wdmenu.nix;
|
|
|
|
wlauncher = ./wlauncher.nix;
|
|
|
|
_gpg-unlock = ./_gpg-unlock.nix;
|
|
|
|
}
|
|
|
|
)
|