{ inputs, ... }: { imports = [ inputs.fetchit.homeManagerModules.default ]; programs.fetchit = { enable = true; logoFileName = "nix.txt"; logo = builtins.readFile ./logos/nix.txt; rows = [ { label = "os"; color = "cyan"; value = ''string.lower(os.name .. " @ " .. kernel.sysname .. " " .. kernel.release)''; } { label = "wm"; color = "cyan"; value = ''"niri wm (v26.04)"''; } { label = "res"; color = "cyan"; value = ''"(<)/1920x1080, (>)/1920x1080"''; } { label = "cpu"; color = "red"; value = ''"ryzen 7 5700g"''; } { label = "gpu"; color = "red"; value = ''"radeon rx 6800xt"''; } { label = "ram"; color = "magenta"; value = ''string.format("%.1fgb/%.1fgb (%.1f%%)", memory.used_gb, memory.total_gb, memory.percent)''; } { label = "disk"; color = "yellow"; value = ''string.format("%.1fgb/%.1fgb", disk.used_gb, disk.total_gb)''; } { label = "shell"; color = "blue"; value = ''string.lower(shell.name)''; } { label = "term"; color = "bright_cyan"; value = ''string.lower(terminal.name)''; } { label = "ip"; color = "red"; value = ''string.lower(run([[ip -4 -o addr show scope global | grep -oE "([0-9]{1,3}.){3}[0-9]{1,3}" | head -1]]))''; } ]; }; }