mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
update sc-check script
This commit is contained in:
parent
7500b12ed9
commit
1dbc5e31ab
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue