1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 03:27:45 +00:00

Don't download git and nom on every rebuild

This commit is contained in:
RGBCube 2023-11-20 15:03:39 +03:00
parent 447c1534ec
commit 50c277a6bb
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -13,7 +13,7 @@ Here is the script you need to run to get this working:
```sh
nix-shell -p git --command "git clone https://github.com/RGBCube/NixOSConfiguration && cd NixOSConfiguration"
nix-shell -p nu --command "nu rebuild.nu"
nix-shell -p git nix-output-monitor nu --command "nu rebuild.nu"
```
`machine-name` is a machine selected from the machines in the `machines` directory.

View file

@ -24,8 +24,5 @@ def main [
exit
}
sudo --validate
nix-shell --packages git nix-output-monitor --command $"sudo nixos-rebuild switch --log-format internal-json --impure --flake .#($machine) ($arguments | str join ' ') |& nom --json"
sudo nixos-rebuild switch --log-format internal-json --impure --flake (".#" + $machine) ($arguments | str join ' ') | nom --json
}