diff --git a/justfile b/justfile index 91751ed..33aca9a 100644 --- a/justfile +++ b/justfile @@ -10,6 +10,14 @@ default: help: @just --list --unsorted --list-heading $'Available commands:\n' +forecast: + nix-forecast -s -c {{ root_dir }}#darwinConfigurations.{{ hostname }} | \ + tee -p /tmp/nix-forecast.txt | head -4 + @echo "Packages to be built:" + @cat /tmp/nix-forecast.txt | grep "/nix/store/" | \ + grep -Pv "\-completions$|\.zip$|\.patch$|\.lock$|\.fish$|\.sh$|\.json$|\.conf$|\.keep$|\.md$" | \ + cut -c 45- | sort | nl + _run cmd: #!/usr/bin/env -S sh -eu if [ "{{ in_nix_shell }}" = "false" ]; then diff --git a/programs/default.nix b/programs/default.nix index 59ee205..7eab740 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -27,6 +27,7 @@ let statix cachix nix-output-monitor + nix-forecast ]; networkingPackages = with pkgs; [ curl