nixos-config/scripts/default.nix

33 lines
856 B
Nix
Raw Normal View History

2022-08-07 23:58:05 -03:00
{ config, lib, ... }:
2022-08-19 20:40:39 -03:00
(pkgs: _:
2022-10-18 12:37:14 -03:00
with pkgs;
let
import_script = (_: path: import (path) { inherit config pkgs lib; });
create_shell_app = (name: text: runtimeInputs: pkgs.writeShellApplication {
inherit name runtimeInputs;
text = (builtins.readFile text);
checkPhase = "";
});
create_shell_apps = lib.mapAttrs (name: deps: create_shell_app name ./${name} deps);
in create_shell_apps {
br = [];
bmenu = [
bemenu
dhist
fish
j4-dmenu-desktop
jq
sway
];
} // lib.mapAttrs import_script {
2022-08-19 20:40:39 -03:00
wdmenu = ./wdmenu.nix;
wlauncher = ./wlauncher.nix;
2022-10-18 12:37:14 -03:00
# bmenu = ./bmenu.nix;
2022-08-19 20:40:39 -03:00
_diffr = ./diffr.nix;
kak-pager = ./kak-pager.nix;
terminal = ./terminal.nix;
wpass = ./wpass.nix;
screenshotsh = ./screenshotsh.nix;
_gpg-unlock = ./_gpg-unlock.nix;
})