From 9b3cf14875d721369c0656c6d50608f3fdb4d546 Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 2 Mar 2023 17:17:36 +0100 Subject: [PATCH] build: add check step --- justfile | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/justfile b/justfile index 07cd534..cb56602 100644 --- a/justfile +++ b/justfile @@ -1,3 +1,22 @@ +secret-stage: + git add -f home/secrets/default.nix + +secret-unstage: + git restore --staged home/secrets/default.nix + + +[linux] +boot: secret-stage && secret-unstage + sudo nixos-rebuild boot --flake . + +[macos] +check: + darwin-rebuild check --flake . + +[linux] +check: + sudo nixos-rebuild check --flake . + [macos] switch: secret-stage && secret-unstage darwin-rebuild switch --flake . @@ -5,13 +24,3 @@ switch: secret-stage && secret-unstage [linux] switch: secret-stage && secret-unstage sudo nixos-rebuild switch --flake . - -[linux] -boot: secret-stage && secret-unstage - sudo nixos-rebuild boot --flake . - -secret-stage: - git add -f home/secrets/default.nix - -secret-unstage: - git restore --staged home/secrets/default.nix