diff options
Diffstat (limited to 'home-configuration/managed/fetchit/default.nix')
| -rw-r--r-- | home-configuration/managed/fetchit/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/home-configuration/managed/fetchit/default.nix b/home-configuration/managed/fetchit/default.nix index 65d0592..2065c79 100644 --- a/home-configuration/managed/fetchit/default.nix +++ b/home-configuration/managed/fetchit/default.nix @@ -1,8 +1,23 @@ -{ ... }: +{ inputs, ... }: { + imports = [ inputs.fetchit.homeManagerModules.default ]; + programs.fetchit = { enable = true; - config = builtins.readFile ./init.lua; + 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]]))''; } + ]; }; } |
