From dbfd0c1665dde1bfbbee4a7b0cbfed5af66a0f80 Mon Sep 17 00:00:00 2001 From: Olivia Crain Date: Mon, 19 Aug 2024 13:43:51 -0500 Subject: [PATCH] just: only use impure build on corvus --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index baef0a3..8e09c2b 100644 --- a/justfile +++ b/justfile @@ -1,10 +1,11 @@ local := `hostname -s` +impure-system-build := if local == "corvus" {"--impure"} else {""} build-system-local: sources-to-store - nom build {{justfile_directory()}}#nixosConfigurations.{{local}}.config.system.build.toplevel --impure --keep-going + nom build {{justfile_directory()}}#nixosConfigurations.{{local}}.config.system.build.toplevel --keep-going {{impure-system-build}} switch: build-system-local - sudo nixos-rebuild switch --flake {{justfile_directory()}}#{{local}} --impure + sudo nixos-rebuild switch --flake {{justfile_directory()}}#{{local}} {{impure-system-build}} diff: build-system-local nvd diff /run/current-system {{justfile_directory()}}/result -- knotmirror 0.0.1