diff options
author | Minijackson <minijackson@riseup.net> | 2020-12-03 16:45:06 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2020-12-03 16:45:06 +0100 |
commit | 3f0e83cb4816e637d8c916fb77217e1c5824dbe5 (patch) | |
tree | 65b48ffe6e82459cde97b8ee61a597402ba2617b /common/commandline/dircolors.nix | |
download | nixos-config-reborn-3f0e83cb4816e637d8c916fb77217e1c5824dbe5.tar.gz nixos-config-reborn-3f0e83cb4816e637d8c916fb77217e1c5824dbe5.zip |
initial commit: most of previous configuration reworked
Diffstat (limited to 'common/commandline/dircolors.nix')
-rw-r--r-- | common/commandline/dircolors.nix | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/common/commandline/dircolors.nix b/common/commandline/dircolors.nix new file mode 100644 index 0000000..7ef3a4d --- /dev/null +++ b/common/commandline/dircolors.nix | |||
@@ -0,0 +1,74 @@ | |||
1 | { config, ... }: | ||
2 | |||
3 | { | ||
4 | home-manager.users.minijackson = { ... }: | ||
5 | { | ||
6 | programs.dircolors = { | ||
7 | enable = true; | ||
8 | settings = { | ||
9 | # Enable on the alacritty terminal | ||
10 | TERM = "alacritty*"; | ||
11 | |||
12 | DIR = "01;94"; | ||
13 | EXEC = "01;92"; | ||
14 | |||
15 | FIFO = "93"; # pipe" | ||
16 | BLK = "93;01"; # block device driver" | ||
17 | CHR = "93;01"; # character device driver" | ||
18 | |||
19 | # archives or compressed (yellow) | ||
20 | ".tar" = "01;33"; | ||
21 | ".tgz" = "01;33"; | ||
22 | ".arc" = "01;33"; | ||
23 | ".arj" = "01;33"; | ||
24 | ".taz" = "01;33"; | ||
25 | ".lha" = "01;33"; | ||
26 | ".lz4" = "01;33"; | ||
27 | ".lzh" = "01;33"; | ||
28 | ".lzma" = "01;33"; | ||
29 | ".tlz" = "01;33"; | ||
30 | ".txz" = "01;33"; | ||
31 | ".tzo" = "01;33"; | ||
32 | ".t7z" = "01;33"; | ||
33 | ".zip" = "01;33"; | ||
34 | ".z" = "01;33"; | ||
35 | ".dz" = "01;33"; | ||
36 | ".gz" = "01;33"; | ||
37 | ".lrz" = "01;33"; | ||
38 | ".lz" = "01;33"; | ||
39 | ".lzo" = "01;33"; | ||
40 | ".xz" = "01;33"; | ||
41 | ".zst" = "01;33"; | ||
42 | ".tzst" = "01;33"; | ||
43 | ".bz2" = "01;33"; | ||
44 | ".bz" = "01;33"; | ||
45 | ".tbz" = "01;33"; | ||
46 | ".tbz2" = "01;33"; | ||
47 | ".tz" = "01;33"; | ||
48 | ".deb" = "01;33"; | ||
49 | ".rpm" = "01;33"; | ||
50 | ".jar" = "01;33"; | ||
51 | ".war" = "01;33"; | ||
52 | ".ear" = "01;33"; | ||
53 | ".sar" = "01;33"; | ||
54 | ".rar" = "01;33"; | ||
55 | ".alz" = "01;33"; | ||
56 | ".ace" = "01;33"; | ||
57 | ".zoo" = "01;33"; | ||
58 | ".cpio" = "01;33"; | ||
59 | ".7z" = "01;33"; | ||
60 | ".rz" = "01;33"; | ||
61 | ".cab" = "01;33"; | ||
62 | ".wim" = "01;33"; | ||
63 | ".swm" = "01;33"; | ||
64 | ".dwm" = "01;33"; | ||
65 | ".esd" = "01;33"; | ||
66 | }; | ||
67 | }; | ||
68 | }; | ||
69 | |||
70 | home-manager.users.root = { ... }: | ||
71 | { | ||
72 | programs.dircolors = config.home-manager.users.minijackson.programs.dircolors; | ||
73 | }; | ||
74 | } | ||