From 1dbc5e31aba52ca5c4dd6df43aca8caafb176db3 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 22 Jun 2022 15:56:21 -0400 Subject: [PATCH] update sc-check script --- modules/sean.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/sean.nix b/modules/sean.nix index b2f5ac3..340378b 100644 --- a/modules/sean.nix +++ b/modules/sean.nix @@ -30,8 +30,11 @@ in environment.systemPackages = [ (pkgs.writeShellScriptBin "sc-check" '' - readlink /run/current-system - nix eval --raw "bck#nixosConfigurations.$(hostname).config.system.build.toplevel" + out="$(mktemp -d)" + nix build -o "$out/out" \ + "bck#nixosConfigurations.$(hostname).config.system.build.toplevel" + readlink /run/current-system "$out/out" + rm -r "$out/out" '') ] ++ map