Skyler Grey | 81a2e01 | 2022-05-31 22:46:18 +0100 | [diff] [blame] | 1 | { pkgs, lib, ... }: let |
2 | scripts = import ../../utils/scriptsIn.nix lib ../../../scripts; | ||||
3 | in { | ||||
4 | home.packages = map (f: pkgs.writeShellScriptBin | ||||
5 | (builtins.elemAt (builtins.match "^(.*/)*(.*)\\.sh$" (toString f)) 1) | ||||
Skyler Grey | 4bbb513 | 2022-05-31 23:14:33 +0100 | [diff] [blame^] | 6 | (builtins.readFile f) |
Skyler Grey | 81a2e01 | 2022-05-31 22:46:18 +0100 | [diff] [blame] | 7 | ) scripts; |
8 | } | ||||
9 |