From a28799966c40cfc43b105cbe9e3017defd93de5e Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Mon, 12 May 2025 11:46:20 +0530 Subject: [PATCH] Adds nix-forecast --- justfile | 8 ++++++++ programs/default.nix | 1 + 2 files changed, 9 insertions(+) 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