From aaee350efdf1ddf1e359e736efa4da191d4dbe8b Mon Sep 17 00:00:00 2001 From: Olivia Crain Date: Mon, 15 Jul 2024 12:06:40 -0500 Subject: [PATCH] justfile: add command for diffing system configs --- flake.nix | 1 + justfile | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index fed4fcf..6713a16 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,7 @@ age just nix-output-monitor + nvd sops ; }; diff --git a/justfile b/justfile index 2856d78..9926681 100644 --- a/justfile +++ b/justfile @@ -1,9 +1,14 @@ local := `hostname -s` -switch: sources-to-store - nom build {{justfile_directory()}}#nixosConfigurations.{{local}}.config.system.build.toplevel --impure +build-system-local: sources-to-store + nom build {{justfile_directory()}}#nixosConfigurations.{{local}}.config.system.build.toplevel --impure --keep-going + +switch: build-system-local sudo nixos-rebuild switch --flake {{justfile_directory()}}#{{local}} --impure +diff: build-system-local + nvd diff /run/current-system {{justfile_directory()}}/result + check: nix run github:DeterminateSystems/flake-checker -- knotmirror 0.0.1