zamlz / nix

NixOS Configuration ❄️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NixOS Configuration

A (WIP) NixOS Configuration repo for all my systems.

Basic Usage

Install the nixos system. Note this command is hardware dependent. We use the hostname to associate hardware.

sudo nixos-rebuild switch --flake .#${hostname}

New Installation Guide

First, install a minimal installation of NixOS.

Next, once you get into the system. Create a new entry for the system in the nixosConfigurations. This will require copying the hardware-configuration.nix file into the config as well.

Enable flakes on the original system. Add the following to the /etc/nixos/configuration.nix file.

nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [ git ];

Make sure to update the channels to unstable as well.

nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nixos-rebuild switch --upgrade

About

NixOS Configuration ❄️

License:MIT License


Languages

Language:Nix 46.1%Language:Python 41.8%Language:Shell 12.2%