/nix-config

NixOS & Home-manager configuration

Primary LanguageNixCreative Commons Zero v1.0 UniversalCC0-1.0

My NixOS Configuration

This is NixOS/home-manager configuration. Requires Nix flakes.

TODO: Add highlights...

Usage

Installation on new system

NixOS can be installed on a new system with these instructions:

  1. Boot with minimal ISO
  2. Change to root
    sudo -i
  3. Change keyboard layout to your liking
    loadkeys de_CH-latin1
  4. Install git
    nix-shell -p git
  5. Clone NixOS configuration repository
    git clone https://github.com/tepene/nix-config.git
  6. Run setup script
    cd ./nix-config && ./setup.sh
  7. Reboot system
    reboot

After installation

Once NixOS is running the final configurations can be applied with these instructions:

  1. Clone NixOS configuration repository
    git clone https://github.com/tepene/nix-config.git
  2. Apply system configuration
    sudo nixos-rebuild switch --flake .#hostname
  3. Apply home configuration
    home-manager switch --flake .#username@hostname
  4. Reboot system
    reboot

Credits

My NixOS configuration based on and greatly inspired by: