Added working example

This commit is contained in:
2026-03-21 20:01:50 +00:00
parent 73284fa1da
commit 8ab9d28526
25 changed files with 1493 additions and 0 deletions
@@ -0,0 +1,99 @@
{ ... }:
{
flake.nixosModules.fastfetch = { config, lib, pkgs, ... }:
let
cfg = config.mySystem.apps.fastfetch;
in {
options.mySystem.apps.fastfetch.enable = lib.mkEnableOption "Personalized Fastfetch";
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.fastfetch ];
home-manager.users.shonh.programs.fastfetch = {
enable = true;
settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
"logo" = {
"type" = "small";
"padding" = {
"top" = 1;
"left" = 1;
};
};
"display" = {
"separator" = " ";
};
"modules" = [
{
"key" = "";
"type" = "custom";
}
{
"key" = " {#31} user {#keys}";
"type" = "title";
"format" = "{user-name}";
}
{
"key" = " {#32}󰇅 hname {#keys}";
"type" = "title";
"format" = "{host-name}";
}
{
"key" = " {#33}󰅐 uptime {#keys}";
"type" = "uptime";
}
{
"key" = " {#34}{icon} distro {#keys}";
"type" = "os";
}
{
"key" = " {#35} kernel {#keys}";
"type" = "kernel";
}
{
"key" = " {#36}󰇄 desktop {#keys}";
"type" = "de";
}
{
"key" = " {#31} term {#keys}";
"type" = "terminal";
}
{
"key" = " {#32} shell {#keys}";
"type" = "shell";
}
{
"key" = " {#33}󰍛 cpu {#keys}";
"type" = "cpu";
"showPeCoreCount" = true;
}
{
"key" = " {#34}󰉉 disk {#keys}";
"type" = "disk";
"folders" = "/";
}
{
"key" = " {#35} memory {#keys}";
"type" = "memory";
}
{
"key" = "";
"type" = "custom";
}
{
"key" = " {#39} colors {#keys}";
"type" = "colors";
"symbol" = "circle";
}
{
"key" = "";
"type" = "custom";
}
];
};
};
};
};
}