mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 19:47:47 +00:00
Don't download git and nom on every rebuild
This commit is contained in:
parent
447c1534ec
commit
50c277a6bb
2 changed files with 2 additions and 5 deletions
|
@ -13,7 +13,7 @@ Here is the script you need to run to get this working:
|
||||||
```sh
|
```sh
|
||||||
nix-shell -p git --command "git clone https://github.com/RGBCube/NixOSConfiguration && cd NixOSConfiguration"
|
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.
|
`machine-name` is a machine selected from the machines in the `machines` directory.
|
||||||
|
|
|
@ -24,8 +24,5 @@ def main [
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
sudo --validate
|
sudo nixos-rebuild switch --log-format internal-json --impure --flake (".#" + $machine) ($arguments | str join ' ') | nom --json
|
||||||
nix-shell --packages git nix-output-monitor --command $"sudo nixos-rebuild switch --log-format internal-json --impure --flake .#($machine) ($arguments | str join ' ') |& nom --json"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue