diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 19:01:38 -0700 |
| commit | e8077fde966e051fc449fffcfa061c7f7edc47b0 (patch) | |
| tree | a0b1ce60f2718f90c64e924ed8df8d5d4f0d2289 /modules/home/apps/fastfetch | |
| parent | e486d896215e7ef04438809952bc7317512d5765 (diff) | |
migration: finalize
Diffstat (limited to 'modules/home/apps/fastfetch')
| -rw-r--r-- | modules/home/apps/fastfetch/assets/mem.png | bin | 0 -> 185313 bytes | |||
| -rw-r--r-- | modules/home/apps/fastfetch/assets/nonon.png | bin | 0 -> 108707 bytes | |||
| -rw-r--r-- | modules/home/apps/fastfetch/assets/ryo.png | bin | 0 -> 128547 bytes | |||
| -rw-r--r-- | modules/home/apps/fastfetch/default.nix | 81 |
4 files changed, 81 insertions, 0 deletions
diff --git a/modules/home/apps/fastfetch/assets/mem.png b/modules/home/apps/fastfetch/assets/mem.png Binary files differnew file mode 100644 index 0000000..999c4dd --- /dev/null +++ b/modules/home/apps/fastfetch/assets/mem.png diff --git a/modules/home/apps/fastfetch/assets/nonon.png b/modules/home/apps/fastfetch/assets/nonon.png Binary files differnew file mode 100644 index 0000000..57056ce --- /dev/null +++ b/modules/home/apps/fastfetch/assets/nonon.png diff --git a/modules/home/apps/fastfetch/assets/ryo.png b/modules/home/apps/fastfetch/assets/ryo.png Binary files differnew file mode 100644 index 0000000..852df37 --- /dev/null +++ b/modules/home/apps/fastfetch/assets/ryo.png diff --git a/modules/home/apps/fastfetch/default.nix b/modules/home/apps/fastfetch/default.nix new file mode 100644 index 0000000..aa901e6 --- /dev/null +++ b/modules/home/apps/fastfetch/default.nix @@ -0,0 +1,81 @@ +{ options, config, lib, pkgs, namespace, ... }: + +with lib; with lib.${namespace}; let + cfg = config.${namespace}.apps.fastfetch; +in { + options.${namespace}.apps.fastfetch = with types; { + enable = mkEnableOption "fastfetch"; + }; + + config = mkIf cfg.enable { + programs.fastfetch = { + enable = true; + package = (pkgs.fastfetch.overrideAttrs (finalAttrs: previousAttrs: { + cmakeFlags = [(cmakeBool "ENABLE_IMAGEMAGICK6" true)]; + })); + + settings = { + logo = { + type = "kitty-direct"; + source = "$(ls ${./assets}/*.png | shuf -n 1)"; + + width = 36; + height = 32; + + padding = { + left = 4; + right = 4; + }; + }; + + display = { + separator = ""; + }; + + modules = [ + { type = "custom"; format = " ハードウェア "; } + { type = "custom"; format = "┌──────────────────────────────────────────────────┐"; } + + { type = "cpu"; key = " CPU "; } + { type = "gpu"; key = " GPU "; format = "{2} [{6}]"; } + { type = "memory"; key = " MEM "; } + "break" + { + type = "disk"; + folders = "/nix:/persist"; + key = " "; + } + + { type = "custom"; format = "└──────────────────────────────────────────────────┘"; } + "break" + + { type = "custom"; format = " ソフトウェア "; } + { type = "custom"; format = "┌──────────────────────────────────────────────────┐"; } + + { type = "title"; key = " "; format = "{1}@{2}"; } + "break" + { type = "os"; key = " "; } + { type = "kernel"; key = " "; format = "{1} {2}"; } + { type = "packages"; key = " "; } + "break" + { type = "terminal"; key = " "; } + { type = "shell"; key = " "; } + # { type = "font"; key = " "; } + { type = "font"; key = " "; format = "Caskaydia Mono (8pt)"; } + "break" + { type = "wm"; key = " "; } + # { type = "theme"; key = " "; } + { type = "theme"; key = " "; format = "gruvbox"; } + "break" + { type = "media"; key = " "; } + { type = "datetime"; key = " "; } + + { type = "custom"; format = "└──────────────────────────────────────────────────┘"; } + "break" + + "colors" + ]; + }; + }; + }; +} |