Skip to content

Commit a89a753

Browse files
committed
feat: added fastfetch module
1 parent a09e65e commit a89a753

File tree

6 files changed

+129
-6
lines changed

6 files changed

+129
-6
lines changed

hosts/Default/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ in
4242
../../modules/programs/cli/direnv
4343
../../modules/programs/cli/lazygit
4444
../../modules/programs/cli/cava
45+
# ../../modules/programs/cli/fastfetch
4546
../../modules/programs/cli/btop
4647
../../modules/programs/media/discord
4748
../../modules/programs/media/spicetify

modules/core/bash.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
vc = "code --disable-gpu"; # gui code editor
8888
nv = "nvim";
8989
nf = "${pkgs.microfetch}/bin/microfetch";
90+
ff = "fastfetch";
9091
cp = "cp -iv";
9192
mv = "mv -iv";
9293
rm = "rm -vI";

modules/core/zsh.nix

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@
118118
tree = "${pkgs.eza}/bin/eza --icons=auto --tree"; # dir tree
119119
vc = "code --disable-gpu"; # gui code editor
120120
nv = "nvim";
121-
nf = "nitch";
122-
mf = "${pkgs.microfetch}/bin/microfetch";
121+
nf = "${pkgs.microfetch}/bin/microfetch";
122+
ff = "fastfetch";
123123
cp = "cp -iv";
124124
mv = "mv -iv";
125125
rm = "rm -vI";
@@ -129,17 +129,14 @@
129129
tpr = "${pkgs.trash-cli}/bin/trash-restore";
130130
grep = "grep --color=always";
131131
pokemon = "pokego --random 1-8 --no-title";
132-
h = "history";
133-
auth = "tgpt";
134-
132+
135133
# Nixos
136134
list-gens = "nixos-rebuild list-generations";
137135
find-store-path = ''function { nix-shell -p $1 --command "nix eval -f \"<nixpkgs>\" --raw $1" }'';
138136
update-input = "nix flake update $@";
139137
sysup = "nix flake update --flake ~/NixOS && rebuild";
140138

141139
# Directory Shortcuts.
142-
hosts = "cd ~/NixOS/hosts/ && ls";
143140
dots = "cd ~/NixOS/";
144141
games = "cd /mnt/games/";
145142
work = "cd /mnt/work/";
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
3+
"logo": {
4+
"source": "$(find \"${XDG_CONFIG_HOME:-$HOME/.config}/fastfetch/icons/\" -name \"*.png\" | shuf -n 1)",
5+
"height": 18,
6+
},
7+
"display": {
8+
"separator": " : ",
9+
},
10+
"modules": [
11+
{
12+
"type": "custom",
13+
"format": "┌────────────────────────────────────────────────┐",
14+
},
15+
{
16+
"type": "os",
17+
"key": "  OS",
18+
"format": "{2}",
19+
"keyColor": "red",
20+
},
21+
{
22+
"type": "kernel",
23+
"key": "  Kernel",
24+
"format": "{2}",
25+
"keyColor": "red",
26+
},
27+
{
28+
"type": "packages",
29+
"key": " 󰏗 Packages",
30+
"keyColor": "green",
31+
},
32+
{
33+
"type": "display",
34+
"key": " 󰍹 Display",
35+
"format": "{1}x{2} @ {3}Hz [{7}]",
36+
"keyColor": "green",
37+
},
38+
{
39+
"type": "terminal",
40+
"key": " >_ Terminal",
41+
"keyColor": "yellow",
42+
},
43+
{
44+
"type": "wm",
45+
"key": " 󱗃 WM",
46+
"format": "{2}",
47+
"keyColor": "yellow",
48+
},
49+
{
50+
"type": "custom",
51+
"format": "└────────────────────────────────────────────────┘",
52+
},
53+
"break",
54+
{
55+
"type": "title",
56+
"key": "",
57+
"format": "{6} {7} {8}",
58+
},
59+
{
60+
"type": "custom",
61+
"format": "┌────────────────────────────────────────────────┐",
62+
},
63+
{
64+
"type": "cpu",
65+
"format": "{1} @ {7}",
66+
"key": "  CPU",
67+
"keyColor": "blue",
68+
},
69+
{
70+
"type": "gpu",
71+
"format": "{1} {2}",
72+
"key": " 󰊴 GPU",
73+
"keyColor": "blue",
74+
},
75+
{
76+
"type": "gpu",
77+
"format": "{3}",
78+
"key": "  GPU Driver",
79+
"keyColor": "magenta",
80+
},
81+
{
82+
"type": "memory",
83+
"key": "  Memory",
84+
"keyColor": "magenta",
85+
},
86+
{
87+
"type": "command",
88+
"key": " 󱦟 OS Age ",
89+
"keyColor": "red",
90+
"text": "birth_install=$(stat -c %W /); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days",
91+
},
92+
{
93+
"type": "uptime",
94+
"key": " 󱫐 Uptime ",
95+
"keyColor": "red",
96+
},
97+
{
98+
"type": "custom",
99+
"format": "└────────────────────────────────────────────────┘",
100+
},
101+
{
102+
"type": "colors",
103+
"paddingLeft": 2,
104+
"symbol": "circle",
105+
},
106+
"break",
107+
],
108+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
home-manager.sharedModules = [
3+
(_: {
4+
programs.fastfetch = {
5+
enable = true;
6+
};
7+
xdg.configFile = {
8+
"fastfetch/config.jsonc".source = ./config.jsonc;
9+
"fastfetch/icons" = {
10+
source = ./icons;
11+
recursive = true;
12+
};
13+
};
14+
})
15+
];
16+
}
64.7 KB
Loading

0 commit comments

Comments
 (0)