From ada02bd3efa32f577aa3d09cb64bfa40be1a1724 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 30 Jan 2025 19:41:55 +0100 Subject: [PATCH] programs: add fastfetch config --- modules/programs/default.nix | 1 + modules/programs/fastfetch.nix | 123 +++++++++++++++++++++++++++++++++ modules/programs/misc.nix | 1 - 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 modules/programs/fastfetch.nix diff --git a/modules/programs/default.nix b/modules/programs/default.nix index 7977618..18f7bfe 100644 --- a/modules/programs/default.nix +++ b/modules/programs/default.nix @@ -7,6 +7,7 @@ ./terminal ./discord.nix + ./fastfetch.nix ./firefox.nix ./games.nix ./misc.nix diff --git a/modules/programs/fastfetch.nix b/modules/programs/fastfetch.nix new file mode 100644 index 0000000..5eac636 --- /dev/null +++ b/modules/programs/fastfetch.nix @@ -0,0 +1,123 @@ +{ + lib, + pkgs, + config, + ... +}: let + inherit (config.local.systemVars) username; + logo = builtins.fetchurl { + url = "https://raw.githubusercontent.com/gytis-ivaskevicius/high-quality-nix-content/refs/heads/master/anime/cirnos-logo.png"; + sha256 = "1nr2rqr465h5icj699ssah9mwwiy3n3lnbvslwffxwzimc96hgj2"; + }; +in { + config = lib.mkIf config.local.profiles.desktop.enable { + hjem.users.${username} = { + packages = [pkgs.fastfetch]; + files = { + ".config/fastfetch/config.jsonc".text = builtins.toJSON { + logo = { + source = logo; + type = "kitty"; + width = 33; + }; + + modules = [ + { + type = "title"; + color = { + user = "35"; + host = "36"; + }; + } + { + type = "separator"; + string = "▔"; + } + { + type = "os"; + key = "╭─ "; + format = "{3} ({12})"; + keyColor = "32"; + } + { + type = "host"; + key = "├─󰟀 "; + keyColor = "32"; + } + { + type = "kernel"; + key = "├─󰒔 "; + format = "{1} {2}"; + keyColor = "32"; + } + { + type = "shell"; + key = "├─$ "; + format = "{1} {4}"; + keyColor = "32"; + } + { + type = "packages"; + key = "├─ "; + keyColor = "32"; + } + { + type = "uptime"; + key = "╰─󰔚 "; + keyColor = "32"; + } + "break" + { + type = "display"; + key = "╭─󰹑 "; + keyColor = "33"; + compactType = "original"; + } + { + type = "de"; + key = "├─󰧨 "; + keyColor = "33"; + } + { + type = "wm"; + key = "├─ "; + keyColor = "33"; + } + { + type = "theme"; + key = "├─󰉼 "; + keyColor = "33"; + } + { + type = "icons"; + key = "├─ "; + keyColor = "33"; + } + { + type = "cursor"; + key = "├─󰳽 "; + keyColor = "33"; + } + { + type = "font"; + key = "├─ "; + format = "{2}"; + keyColor = "33"; + } + { + type = "terminal"; + key = "╰─ "; + format = "{3}"; + keyColor = "33"; + } + "break" + { + type = "colors"; + symbol = "block"; + } + ]; + }; + }; + }; + }; +} diff --git a/modules/programs/misc.nix b/modules/programs/misc.nix index baab886..5654f7a 100644 --- a/modules/programs/misc.nix +++ b/modules/programs/misc.nix @@ -12,7 +12,6 @@ in { hjem.users.${username} = { packages = with pkgs; [ entr - fastfetch fractal fzf geary