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
Creating a new project is easy with templates:
- Create a folder with the name of your project
- Initialize your project with a
flake.nix
using one of the templates intemplates/default.nix
using the following command:
nix flake init -t github:wjehee/.dotfiles-nix#TEMPLATE
- Follow the welcome instructions
- Rust
- Zig
- Elixir
- Python
- Gleam
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