From 8936112348e9729874c83f3ff15e2fa8f956cb1c Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 30 Apr 2026 03:07:52 -0700 Subject: [PATCH] nixos: add cachix populate recipe --- nixos/justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/justfile b/nixos/justfile index 561c3838..ac0eeb72 100644 --- a/nixos/justfile +++ b/nixos/justfile @@ -25,6 +25,9 @@ switch-local-taffybar *args: remote-switch host *args: nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#{{host}}" --target-host {{host}}.local --sudo --impure --option warn-dirty false {{args}} +populate-cachix cache="colonelpanic8-dotfiles" host=`hostname` *args: + store_path="$(nix build --no-link --print-out-paths ".#nixosConfigurations.{{host}}.config.system.build.toplevel" --impure --option warn-dirty false {{args}})" && cachix push {{cache}} "$store_path" + fix-local-path-issue: # Kept for backwards-compat: update the lockfile inputs explicitly. nix flake update imalison-taffybar