User Tools

Site Tools


howto:nix_hosts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
howto:nix_hosts [2023/03/10 18:14] – created tcmalhowto:nix_hosts [2023/06/03 22:07] tcmal
Line 81: Line 81:
 Now that you're all setup, you can use the 3 scripts in our repo for most tasks: Now that you're all setup, you can use the 3 scripts in our repo for most tasks:
  
-  * ''scripts/eval.sh <hostname>'' evaluates a given hostname and does some basic checks like that options exist, etc. Nothing gets built, and this doesnt even require remote building. +  * ''scripts/eval_system <hostname>'' evaluates a given hostname and does some basic checks like that options exist, etc. Nothing gets built, and this doesnt even require remote building. 
-  * ''scripts/remote_build_deploy.sh <hostname>'' builds and deploys the given hostname - all remotely. It has auto rollback if any services fail to start, but you should still be careful. Add ''--dry-run'' if you want to just build everything, but not deploy it yet+  * ''colmena apply switch --on=<hostname>'' builds and deploys the given hostname - all remotely. Skip the ''on'' flag if you want to deploy everything. 
-  * ''scripts/needs_rebuild.sh <hostname>'' tries to tell you if the given hostname needs rebuilt. It's mostly used in CIand may be broken rn.+  * ''colmena apply build --on=<hostname>'' just builds the given hostname, but doesn't switch to it.
  
 And some routine Nix tasks: And some routine Nix tasks:
  
   - ''nix flake update'' - Update all inputs   - ''nix flake update'' - Update all inputs
-  - ''nix flake lock --update-input <name>'' - Update a specific input, ie ''sonic-screwdriver''+  - ''nix flake lock --update-input <name>'' - Update a specific input, ie ''crane''