From c167e3ac64178d55650d28f45925ddf3714927ea Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Tue, 7 Oct 2025 11:48:20 +0800 Subject: [PATCH] feat(cli): use fastfetch --- modules/cli/misc.nix | 110 ++++++++++++++++++++++++++++++++++++++ modules/cli/shell/zsh.nix | 2 +- 2 files changed, 111 insertions(+), 1 deletion(-) diff --git a/modules/cli/misc.nix b/modules/cli/misc.nix index 89049c2..4e5657d 100644 --- a/modules/cli/misc.nix +++ b/modules/cli/misc.nix @@ -53,6 +53,7 @@ lib.my.makeSwitch { lsd fd neofetch + fastfetch fzf bat ripgrep @@ -86,6 +87,115 @@ lib.my.makeSwitch { enable = true; enableZshIntegration = true; }; + xdg.configFile."fastfetch/config.jsonc".text = '' + { + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "display": { + "separator": " " + }, + "modules": [ + // Title + { + "type": "title", + "format": "{user-name-colored}{#}@{host-name-colored}" + }, + { + "type": "custom", + "format": "---------------" + }, + // System Information + { + "type": "custom", + "format": "{#}System Information" + }, + { + "type": "os", + "key": "{#keys}󰍹 OS" + }, + { + "type": "kernel", + "key": "{#keys}󰒋 Kernel" + }, + { + "type": "uptime", + "key": "{#keys}󰅐 Uptime" + }, + { + "type": "packages", + "key": "{#keys}󰏖 Packages", + "format": "{all}" + }, + { + "type": "custom", + "format": "" + }, + // Desktop Environment + { + "type": "custom", + "format": "{#}Desktop Environment" + }, + { + "type": "de", + "key": "{#keys}󰧨 DE" + }, + { + "type": "wm", + "key": "{#keys}󱂬 WM" + }, + { + "type": "wmtheme", + "key": "{#keys}󰉼 Theme" + }, + { + "type": "display", + "key": "{#keys}󰹑 Resolution" + }, + { + "type": "shell", + "key": "{#keys}󰞷 Shell" + }, + { + "type": "terminalfont", + "key": "{#keys}󰛖 Font" + }, + { + "type": "custom", + "format": "" + }, + // Hardware Information + { + "type": "custom", + "format": "{#}Hardware Information" + }, + { + "type": "cpu", + "key": "{#keys}󰻠 CPU" + }, + { + "type": "gpu", + "key": "{#keys}󰢮 GPU" + }, + { + "type": "memory", + "key": "{#keys}󰍛 Memory" + }, + { + "type": "disk", + "key": "{#keys}󰋊 Disk (/)", + "folders": "/" + }, + { + "type": "custom", + "format": "" + }, + // Colors + { + "type": "colors", + "symbol": "circle" + }, + ] + } + ''; }; }; } diff --git a/modules/cli/shell/zsh.nix b/modules/cli/shell/zsh.nix index b43ab8c..dc6270a 100644 --- a/modules/cli/shell/zsh.nix +++ b/modules/cli/shell/zsh.nix @@ -107,7 +107,7 @@ lib.my.makeSwitch { x = "extract"; ls = "lsd"; svim = "sudoedit"; - nf = "neofetch"; + nf = "fastfetch"; tmux = "tmux -T RGB,focus,overline,mouse,clipboard,usstyle"; pastart = "pasuspender true"; };