diff options
| author | coast <coasteen@proton.me> | 2026-09-05 17:49:43 +0330 |
|---|---|---|
| committer | coast <coasteen@proton.me> | 2026-09-05 17:49:43 +0330 |
| commit | 61a4eb7165428365b790e188b61e3cb419b84afe (patch) | |
| tree | 06b1237b14bb202ad3f1f96cd69a692398e50a61 /home-configuration/managed/fetchit/default.nix | |
| parent | d14daa94de3c42da90f1bfc1ce6d9b26363530b3 (diff) | |
| download | nix-61a4eb7165428365b790e188b61e3cb419b84afe.tar.gz nix-61a4eb7165428365b790e188b61e3cb419b84afe.tar.bz2 nix-61a4eb7165428365b790e188b61e3cb419b84afe.tar.xz nix-61a4eb7165428365b790e188b61e3cb419b84afe.tar.zst | |
update
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]]))''; } + ]; }; } |
