2022-10-18 21:45:20 -03:00
|
|
|
(final: prev:
|
|
|
|
with prev;
|
2022-10-18 12:37:14 -03:00
|
|
|
let
|
2022-10-18 21:45:20 -03:00
|
|
|
import_script = (_: path: import (path) { inherit pkgs lib; });
|
2022-10-18 19:53:40 -03:00
|
|
|
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 = "";
|
2022-10-18 20:04:46 -03:00
|
|
|
}));
|
2022-10-18 19:53:40 -03:00
|
|
|
create_scripts =
|
|
|
|
lib.mapAttrs (name: deps: create_script name ./${name} deps);
|
|
|
|
in create_scripts {
|
|
|
|
br = [ ];
|
2022-10-18 21:45:20 -03:00
|
|
|
bmenu = [ bemenu final.dhist fish j4-dmenu-desktop jq sway ];
|
2022-10-18 20:04:46 -03:00
|
|
|
_diffr = [ diffr ];
|
2022-10-18 21:45:20 -03:00
|
|
|
kak-pager = [ fish final._diffr ];
|
2022-10-18 20:04:46 -03:00
|
|
|
terminal = [ alacritty ];
|
2022-10-21 20:21:51 -03:00
|
|
|
wpass = [ final.wdmenu fd pass sd wl-clipboard wtype ];
|
2022-10-18 20:04:46 -03:00
|
|
|
screenshotsh =
|
2022-10-18 21:45:20 -03:00
|
|
|
[ capitaine-cursors grim slurp jq sway wl-clipboard xdg-user-dirs ];
|
2022-11-07 11:24:40 -03:00
|
|
|
volumesh = [ pulseaudio libnotify ];
|
|
|
|
pulse_sink = [ pulseaudio pamixer final.wdmenu ];
|
2022-10-18 12:37:14 -03:00
|
|
|
} // lib.mapAttrs import_script {
|
2022-08-19 20:40:39 -03:00
|
|
|
wdmenu = ./wdmenu.nix;
|
|
|
|
wlauncher = ./wlauncher.nix;
|
|
|
|
_gpg-unlock = ./_gpg-unlock.nix;
|
|
|
|
})
|