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 =
[
(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