summaryrefslogblamecommitdiff
path: root/hermes/home-manager/leo/programs/fastfetch.nix
blob: 94eccab5081b164685fcc5c1764de86b09d82ade (plain) (tree)
























































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