update sc-check script

This commit is contained in:
Sean Buckley 2022-06-22 15:56:21 -04:00
parent 7500b12ed9
commit 1dbc5e31ab

View file

@ -30,8 +30,11 @@ in
environment.systemPackages = environment.systemPackages =
[ [
(pkgs.writeShellScriptBin "sc-check" '' (pkgs.writeShellScriptBin "sc-check" ''
readlink /run/current-system out="$(mktemp -d)"
nix eval --raw "bck#nixosConfigurations.$(hostname).config.system.build.toplevel" nix build -o "$out/out" \
"bck#nixosConfigurations.$(hostname).config.system.build.toplevel"
readlink /run/current-system "$out/out"
rm -r "$out/out"
'') '')
] ]
++ map ++ map