Adds nix-forecast

This commit is contained in:
Abhinav Sarkar 2025-05-12 11:46:20 +05:30
parent ba7e2641f0
commit a28799966c
2 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -27,6 +27,7 @@ let
statix
cachix
nix-output-monitor
nix-forecast
];
networkingPackages = with pkgs; [
curl