From afb35b3abd7fe4bace4d569ff3321e4312f9d60c Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 20 Nov 2025 01:09:45 -0600 Subject: [PATCH] push cache alias --- modules/dev/nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/dev/nix.nix b/modules/dev/nix.nix index f8df268..31e0a30 100644 --- a/modules/dev/nix.nix +++ b/modules/dev/nix.nix @@ -42,6 +42,11 @@ in nix run nixpkgs#nixfmt-tree && \ statix fix ''; + nix-push-cache = '' + nix build $NH_FLAKE#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel \ + --print-out-paths --fallback --max-jobs 100 --cores 0 | + nix run nixpkgs#attic-client -- push lan:nixos --stdin + ''; }; }; }