{ flake.modules.homeManager.gui = { pkgs, ... }: { home.packages = [ (pkgs.writeShellApplication { name = "status-cpu"; runtimeInputs = with pkgs; [ sysstat ]; text = '' mpstat | grep -A 5 "%idle" | tail -n 1 | awk -F " " '{printf "%s%% CPU", 100 - $ 12}' ''; }) ]; }; }