mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +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 =
|
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
|
||||||
|
|
Loading…
Reference in a new issue