programs: add fastfetch config

This commit is contained in:
Anthony Rodriguez 2025-01-30 19:41:55 +01:00
parent c9419c8f9c
commit ada02bd3ef
Signed by: nezia
SSH key fingerprint: SHA256:Ihfpl0rUpqDevYqnzSR34OYfVLbDNkBiUjs3CpX4ykA
3 changed files with 124 additions and 1 deletions

View file

@ -7,6 +7,7 @@
./terminal ./terminal
./discord.nix ./discord.nix
./fastfetch.nix
./firefox.nix ./firefox.nix
./games.nix ./games.nix
./misc.nix ./misc.nix

View file

@ -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";
}
];
};
};
};
};
}

View file

@ -12,7 +12,6 @@ in {
hjem.users.${username} = { hjem.users.${username} = {
packages = with pkgs; [ packages = with pkgs; [
entr entr
fastfetch
fractal fractal
fzf fzf
geary geary