Skip to content

Set up Nix

Platforms

My Nix config works on a variety of platforms. Follow the respective guides for obtaining those if you haven’t already. It is recommended to install Home Manager on any of the listed operating systems.

Install NixOS for the most integrated experience.

Enable flakes

My Nix config heavily relies on Nix flakes to provide most of its features. These aren’t enabled by default on most Nix environments, so it’s recommended but not required to set them up before proceding.

configuration.nix
nix.settings.experimental-features = [ "nix-command" "flakes" ];

Clone the Git repository

My Nix config uses Git to keep track of versions. Clone the repository into an accessible location.

  1. Fetch the Git repository.

    Terminal window
    git clone https://codeberg.org/bricked/nix-config
  2. Enter the cloned repository for all future instructions.

    Terminal window
    cd nix-config

Further reading