aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop/fastfetch.nix
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-07-25 22:52:20 -0700
committerCaroline Larimore <caroline@larimo.re>2024-07-25 23:00:44 -0700
commit2f17e369400b9c895b3554008ab3efbc76255428 (patch)
tree172c910e17f14bb8d0d7306fe527c2c79140df64 /roles/home/desktop/fastfetch.nix
parent10c984caf7067656990e5966b4626314f225755f (diff)
roles: home: migrate old home module to roles
Diffstat (limited to 'roles/home/desktop/fastfetch.nix')
-rw-r--r--roles/home/desktop/fastfetch.nix72
1 files changed, 72 insertions, 0 deletions
diff --git a/roles/home/desktop/fastfetch.nix b/roles/home/desktop/fastfetch.nix
new file mode 100644
index 0000000..dd8b082
--- /dev/null
+++ b/roles/home/desktop/fastfetch.nix
@@ -0,0 +1,72 @@
+{ lib, pkgs, ... }:
+
+{
+ programs.fastfetch = {
+ package = (pkgs.fastfetch.overrideAttrs (finalAttrs: previousAttrs: {
+ cmakeFlags = [(lib.cmakeBool "ENABLE_IMAGEMAGICK6" true)];
+ }));
+
+ settings = {
+ logo = {
+ type = "kitty-direct";
+ source = "$(ls ${../../../assets/fastfetch}/*.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"
+ ];
+ };
+ };
+}