From 6bb9277f1190e15627786152d01a9248f287b881 Mon Sep 17 00:00:00 2001 From: tux Date: Sat, 24 May 2025 23:28:11 +0530 Subject: [PATCH] feat: replaced nitch with fastfetch --- hosts/common/home.nix | 1 + modules/home/fastfetch/default.nix | 73 ++++++++++++++++++++++++++++++ modules/home/shell/default.nix | 3 +- 3 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 modules/home/fastfetch/default.nix diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 20a30f8..22fbd55 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -11,6 +11,7 @@ ../../modules/home/shell ../../modules/home/git ../../modules/home/starship + ../../modules/home/fastfetch ../../modules/home/nvim ../../modules/home/tmux ../../modules/home/helix diff --git a/modules/home/fastfetch/default.nix b/modules/home/fastfetch/default.nix new file mode 100644 index 0000000..8b1b8ea --- /dev/null +++ b/modules/home/fastfetch/default.nix @@ -0,0 +1,73 @@ +{...}: { + home.file.".config/fastfetch/config.jsonc".text = '' + { + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "none", + }, + "display": { + "separator": " ", + "key": { + "width": 18, + }, + }, + "modules": [ + { + "key": " ╭───────────╮", + "type": "custom", + }, + { + "key": " │ │\u001b[11D{#31} user", + "type": "title", + "format": "{1}", + }, + { + "key": " │ │\u001b[11D{#34} hname", + "type": "command", + "text": "hostname", + }, + { + "key": " │ │\u001b[11D{#34}󰻀 distro", + "type": "os", + }, + { + "key": " │ │\u001b[11D{#35}󰌢 kernel", + "type": "kernel", + }, + { + "key": " │ │\u001b[11D{#31} uptime", + "type": "uptime", + }, + { + "key": " │ │\u001b[11D{#32} shell", + "type": "shell", + }, + { + "key": " │ │\u001b[11D{#35}󰏖 pkgs", + "type": "packages", + }, + { + "key": " │ │\u001b[11D{#35} memory", + "type": "memory", + }, + { + "key": " ├───────────┤", + "type": "custom", + }, + { + "key": " │ │\u001b[11D{#39} colors", + "type": "colors", + "symbol": "circle", + }, + { + "key": " ╰───────────╯", + "type": "custom", + }, + ], + } + ''; + + programs.fastfetch = { + enable = true; + }; +} diff --git a/modules/home/shell/default.nix b/modules/home/shell/default.nix index 1968bd3..067fde1 100755 --- a/modules/home/shell/default.nix +++ b/modules/home/shell/default.nix @@ -9,7 +9,7 @@ syntaxHighlighting.enable = true; autosuggestion.enable = true; initContent = '' - nitch + fastfetch export WINIT_X11_SCALE_FACTOR=1 bindkey "^A" vi-beginning-of-line bindkey "^E" vi-end-of-line @@ -40,7 +40,6 @@ home.packages = with pkgs; [ service-wrapper lsd - nitch ranger wget portal