Use NixOS to organize personal system configuration.
Boot-strapping steps.
- Create new directory in
hosts
- Create a new
flake.nix
in that directory - Ensure
hosts/home.nix
sources desired modules - Copy
/etc/nixos/hardware-configuration.nix
to that directory
sudo nixos-rebuild switch --flake <dotfiles-path>/nixos/#<hostname>
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.11.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
# Run from the directory containing the home manager flake.
# Not sure how to do this with a relative path yet.
home-manager -v switch -b backup --flake .
Manually install Doom Emacs.