From 9649f8563cd470539fafac32b4d59564f2835e88 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 4 May 2024 07:02:48 -0400 Subject: [PATCH] added fastfetch config --- aly.nix | 1 + homeManagerModules/apps/default.nix | 1 + .../apps/fastfetch/config.jsonc | 115 ++++++++++++++++++ homeManagerModules/apps/fastfetch/default.nix | 15 +++ 4 files changed, 132 insertions(+) create mode 100644 homeManagerModules/apps/fastfetch/config.jsonc create mode 100644 homeManagerModules/apps/fastfetch/default.nix diff --git a/aly.nix b/aly.nix index 883882c9..fec3f852 100644 --- a/aly.nix +++ b/aly.nix @@ -49,6 +49,7 @@ bash.enable = true; emacs.enable = true; eza.enable = true; + fastfetch.enable = true; fzf.enable = true; neofetch.enable = true; neovim.enable = true; diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index 5b28993e..75dece5a 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -10,6 +10,7 @@ ./chromium ./emacs ./eza + ./fastfetch ./firefox ./fuzzel ./fzf diff --git a/homeManagerModules/apps/fastfetch/config.jsonc b/homeManagerModules/apps/fastfetch/config.jsonc new file mode 100644 index 00000000..249cd821 --- /dev/null +++ b/homeManagerModules/apps/fastfetch/config.jsonc @@ -0,0 +1,115 @@ +// Load with --load-config examples/2.jsonc +// Note that you must replace the image path to an existing image to display it. + +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "padding": { + "bottom": 2, + } + }, + "display": { + "separator": " -> " + }, + "modules": [ + { + "type": "custom", + "format": "\u001b[90m┌────────────────────────────────────────────────────────────┐" + }, + { + "type": "title", + "keyWidth": 10 + }, + { + "type": "custom", + "format": "\u001b[90m└────────────────────────────────────────────────────────────┘" + }, + { + "type": "custom", + "format": " \u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m  \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m" + }, + { + "type": "custom", + "format": "\u001b[90m┌────────────────────────────────────────────────────────────┐" + }, + { + "type": "os", + "key": " OS", + "keyColor": "yellow" + }, + { + "type": "shell", + "key": "│ └", + "keyColor": "yellow" + }, + { + "type": "wm", + "key": " DE/WM", + "keyColor": "blue" + }, + { + "type": "theme", + "key": "│ ├󰉼", + "keyColor": "blue" + }, + { + "type": "terminal", + "key": "│ ├", + "keyColor": "blue" + }, + { + "type": "wallpaper", + "key": "│ └󰸉", + "keyColor": "blue" + }, + { + "type": "host", + "key": "󰌢 PC", + "keyColor": "green" + }, + { + "type": "cpu", + "key": "│ ├󰻠", + "keyColor": "green" + }, + { + "type": "memory", + "key": "│ ├󰑭", + "keyColor": "green" + }, + { + "type": "disk", + "key": "│ ├", + "keyColor": "green" + }, + { + "type": "display", + "key": "│ └󰍹", + "keyColor": "green" + }, + { + "type": "battery", + "key": "│ ├", + "keyColor": "green" + }, + { + "type": "player", + "key": " SND", + "keyColor": "cyan" + }, + { + "type": "media", + "key": "│ └󰝚", + "keyColor": "cyan" + }, + { + "type": "custom", + "format": "\u001b[90m└────────────────────────────────────────────────────────────┘" + }, + "break", + { + "type": "custom", + "format": " \u001b[90m \u001b[31m \u001b[32m \u001b[33m \u001b[34m \u001b[35m \u001b[36m \u001b[37m \u001b[38m \u001b[39m  \u001b[38m \u001b[37m \u001b[36m \u001b[35m \u001b[34m \u001b[33m \u001b[32m \u001b[31m \u001b[90m" + } + ] +} diff --git a/homeManagerModules/apps/fastfetch/default.nix b/homeManagerModules/apps/fastfetch/default.nix new file mode 100644 index 00000000..e23dd1df --- /dev/null +++ b/homeManagerModules/apps/fastfetch/default.nix @@ -0,0 +1,15 @@ +{ + pkgs, + lib, + config, + ... +}: { + options = { + alyraffauf.apps.fastfetch.enable = lib.mkEnableOption "Enable fastfetch."; + }; + + config = lib.mkIf config.alyraffauf.apps.fastfetch.enable { + home.packages = [pkgs.fastfetch]; + xdg.configFile."fastfetch/config.jsonc".source = ./config.jsonc; + }; +}