This is a repository for my NixOS configuration.
- Clone the Git repository.
nix-shell -p git
git clone https://github.com/BastianAsmussen/dotfiles.git ~/dotfiles
cd ~/dotfiles
- Set up the disk configuration, e.g. for
limitless
.
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- \
--mode disko ~/dotfiles/hosts/limitless/disko-config.nix
- Install NixOS with the given configuration, e.g.
limitless
.
sudo nixos-install --flake ~/dotfiles#limitless
- Remember to change the password of the user!
Note
After installation it may be a requirement to update the channel
to get command-not-found
working properly.
To do so, run sudo nix-channel --update
.
- Update the
flake.lock
file about once per week.
nh os switch --update
- If it can't build, roll back to a previous version.
git reset --hard HEAD
I track stuff I need to get done and stuff that annoys me about my current
setup in a file called TODO.md.
If you have suggestions or notice something that could be improved, feel free
to open a pull request. I'll review and consider integrating your
contributions.