Thanks to:
Using my custom installer image
- Become root
sudo su
- Create the password for full disk encryption:
echo "MY_PASSWORD" > /tmp/secret.key
disko-format /PATH/TO/DISK
install-flake HOSTNAME
- Set root passwd after being prompted
After the install has finished, do the following:
nixos-enter --root /mnt
passwd USERNAME
exit
reboot
You can build any packages in pkgs/
, by running nix build .#PACKAGE_NAME
You can install it into your profile by running nix profile .#PACKAGE_NAME
These files also include the configuration for my personal web server,
which can be found under nixos/rusty-server/
.
Old version of rebuild command, this should work but there is some doas stuff: #31
doas nixos-rebuild switch --flake ".#{{hostname}}" &>rebuild.log || grep -C 2 --color error rebuild.log