diff options
Diffstat (limited to 'odino/home-manager/leo/programs/fastfetch.nix')
| -rw-r--r-- | odino/home-manager/leo/programs/fastfetch.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/odino/home-manager/leo/programs/fastfetch.nix b/odino/home-manager/leo/programs/fastfetch.nix new file mode 100644 index 0000000..94eccab --- /dev/null +++ b/odino/home-manager/leo/programs/fastfetch.nix @@ -0,0 +1,57 @@ +{lib, config, ...}: { + options.fastfetch.enable = lib.mkEnableOption "fastfetch config"; + + config = lib.mkIf config.fastfetch.enable { + programs.fastfetch = { + enable = true; + + settings = { + display = { + size = { + maxPrefix = "MB"; + ndigits = 0; + spaceBeforeUnit = "never"; + }; + freq = { + ndigits = 3; + spaceBeforeUnit = "never"; + }; + }; + modules = [ + "title" + "separator" + "os" + { + type = "kernel"; + format = "{release}"; + } + { + type = "packages"; + combined = true; + } + "shell" + { + type = "display"; + compactType = "original"; + key = "Resolution"; + } + "de" + "wm" + "terminal" + "cpu" + { + type = "gpu"; + key = "GPU"; + format = "{name}"; + } + { + type = "memory"; + format = "{used} / {total}"; + } + "break" + "colors" + ]; + }; + }; + }; +} |
