Skip to content

shadeyg56/nixos-config

Repository files navigation

❄️ nixos-config

My dotfiles for nixos

Nix Build

nixos-logo

Why NixOS?

Gone are the days of having to reconfigure your Arch install because your last one broke.

NixOS is a declarative operating system that allows you to create perfectly reproducible systems that can be installed in just a single command

Pros

  • Easily revert to previous configurations through bootloader
  • Reproducable system
  • Central location for system and user configuration
  • nixpkgs is a massive package repo

Cons

  • High learning curve
  • The read-only system can be hard to adjust to

Basically Nix can take a while to learn and setup, but once you figure it out you never have to waste time configuring one of your systems again

Features

Looking for something else? Use the GitHub search function or browse the files split into categories

Installation

  1. Download the NixOS ISO file

  2. Flash the ISO to a USB and install NixOS until you get to nixos-install

    A install guide can be found here

  3. Clone this repo

  4. Replace hardware-configuration.nix with the one you generated (If you skip this step, your system will not boot)

  5. Edit configuration.nix if you want to change your username or other settings

  6. Run nixos-install --flake .#nixos

  7. Reboot and enjoy!

Cachix

Builds are made after every commit using a GitHub action and uploaded to Cachix.

When building the config, Nix will check to see if the derivations are in the cache and will just copy them instead of rebuilding. This saves significant time when building or updating on a system