a dotfile but it's really big
1{
2 config,
3 lib,
4 pkgs,
5 ...
6}:
7let
8 scripts = lib.pipe ./scripts [
9 builtins.readDir
10 (lib.mapAttrsToList (
11 name: type: {
12 name = "bin/${lib.removeSuffix ".nu" name}";
13 path = ./scripts + "/${name}";
14 }
15 ))
16 (pkgs.linkFarm "dev-tools-scripts")
17 ];
18in
19{
20 config = lib.mkIf config.dev.tools.enable {
21 home.packages = [
22 pkgs.sd
23 pkgs.fd
24 pkgs.uutils-coreutils-noprefix
25 pkgs.libnotify
26 scripts
27 ];
28
29 programs = {
30 zoxide.enable = true;
31 carapace.enable = true;
32 ripgrep.enable = true;
33 bat.enable = true;
34 less = {
35 enable = true;
36 config = ''
37 #env
38 LESS = -S -R -i
39 '';
40 };
41 };
42 };
43
44 imports = [ ./direnv.nix ];
45}