Notes from running NixOS in a local VM.
The attached configuration.nix
sets users immutable to force managing them through the config. The primary user is added to the wheel group and the wheel group has passwordless sudo access. All passwords are set by hash (using mkpasswd
). SSH keys can be added for the primary user and/or Tailscale SSH can be enabled.
Everything below is run as root.
Partition, format, mount, configure: