$ sudo mv /etc/nixos{,.bak}
$ sudo git clone https://github.com/ritiek/dotfiles /etc/nixos
- Update machine specific values in
environment.nix
. - Setup Intel/AMD/Nvidia graphics in
graphics.nix
. If I want to use Intel graphics, then comment outgraphics.nix
entirely. If I want to be using Nvidia graphics, then leavegraphics.nix
unmodified. - Rebuild config:
# Create a machine specific `hardware-configuration.nix`.
$ sudo nixos-generate-config
$ cd /etc/nixos/
$ nix flake update
$ sudo nixos-rebuild boot --flake '.#mishy'
$ sudo shutdown -r now
March, 2020
November, 2022
July, 2024