Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

AntonHakansson/dotfiles

Repository files navigation

NixOS configuration

https://img.shields.io/badge/NixOS-21.11-informational?style=flat.svg

https://github.com/AntonHakansson/dotfiles/actions/workflows/check.yml/badge.svg https://github.com/AntonHakansson/dotfiles/actions/workflows/format.yml/badge.svg

First time setup

  1. Grab the latest build of NixOS
  2. Boot into the installer
  3. Do your partitions and mount your root to /mnt
  4. Install build dependencies:
    nix-shell -p git nixFlakes nixUnstable
        
  5. Copy dotfiles:
    git clone https://github.com/AntonHakansson/dotfiles /mnt/etc/nixos
        
  6. Install NixOS:
    nix build /mnt/etc/nixos#nixosConfigurations.<HOSTNAME>.config.system.build.toplevel --experimental-features "flakes nix-command" --store "/mnt" --impure
    nixos-install --root /mnt --system ./result
        
  7. Reboot!
  8. Follow Rebuild system instructions

Rebuild system

Make sure the dotfiles are located in ~/.config/dotfiles then from the dotfiles root directory run:

nixos-rebuild switch --flake .#<HOSTNAME>