fastfetch: nixify config
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-08-08 16:50:50 -04:00
parent 4b07b5d4f9
commit e82d9087f4
3 changed files with 107 additions and 116 deletions

View file

@ -1,115 +0,0 @@
// 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"
}
]
}

View file

@ -0,0 +1,106 @@
{
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
display = {separator = " -> ";};
logo = {padding = {bottom = 2;};};
modules = [
{
format = "";
type = "custom";
}
{
keyWidth = 10;
type = "title";
}
{
format = "";
type = "custom";
}
{
format = "                   ";
type = "custom";
}
{
format = "";
type = "custom";
}
{
key = " OS";
keyColor = "yellow";
type = "os";
}
{
key = " ";
keyColor = "yellow";
type = "shell";
}
{
key = " DE/WM";
keyColor = "blue";
type = "wm";
}
{
key = " 󰉼";
keyColor = "blue";
type = "theme";
}
{
key = " ";
keyColor = "blue";
type = "terminal";
}
{
key = " 󰸉";
keyColor = "blue";
type = "wallpaper";
}
{
key = "󰌢 PC";
keyColor = "green";
type = "host";
}
{
key = " 󰻠";
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 = " SND";
keyColor = "cyan";
type = "player";
}
{
key = " 󰝚";
keyColor = "cyan";
type = "media";
}
{
format = "";
type = "custom";
}
"break"
{
format = "                   ";
type = "custom";
}
];
}

View file

@ -6,6 +6,6 @@
}: { }: {
config = lib.mkIf config.ar.home.apps.fastfetch.enable { config = lib.mkIf config.ar.home.apps.fastfetch.enable {
home.packages = [pkgs.fastfetch]; home.packages = [pkgs.fastfetch];
xdg.configFile."fastfetch/config.jsonc".source = ./config.jsonc; xdg.configFile."fastfetch/config.jsonc".text = lib.generators.toJSON {} (import ./config.nix);
}; };
} }