From CAC Documentation wiki
Revision as of 17:01, 19 November 2018 by Beb82 (talk | contribs) (Initiating NixOS Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Update Image

  • From a newly created NixOS instance:
 sudo nix-channel --update
  • Inspect/edit /etc/nixos/configuration.nix
 sudo nixos-rebuild switch
 sudo reboot # and then confirm working
 nix-collect-garbage -d && sudo nix-collect-garbage -d 
 sudo reboot # and then confirm working
  • Change nixos password (passwd) and confirm nothing funny in /etc/shadow!!!
  • Update nixos user password in Shared-CornellCAC last pass vault
  • Confirm you can't ssh or login as root without a password
  • Further cleanup:
 sudo rm -fr /var/lib/cloud/
 rm /home/nixos/.bash_history
  • From OpenStack:
 1. Shut off instance
 2. Create snapshot