GitHub

Folders and files

NameName

Last commit message

Last commit date

Latest commit

Overview

My NixOS system conigurations.

Example

Installation

  1. Follow the NixOS manual to get the Minimal NixOS base system installed onto the desired machine.
  2. Clone this repo onto the machine and note it's path
git clone https://github.com/mewoocat/NixOS.git
  1. Create a host configuration in NixOS/hosts/
  • This usually involves copying the hardware-configuration.nix that was generated automatically by NixOS during the initial install
  1. Add a nixos system as an attribute to the set returned by ./default.nix
  <hostname> = makeNixosSystem ./host/<hostname>/configuration.nix;
  1. Rebuild & Reboot Install nix helper into the active shell
nix-shell -p nh

Rebuild the system

nh os switch -f <Path/to/NixOS> <hostname>
reboot

Usage

Updating inputs

Use the tack command to manage inputs or manually modify entries within the ./.tack/pins.toml config file

Rebuilding

nh os switch -f <Path/to/NixOS> <hostname>

or

 nixos-rebuild --sudo -f <nixos_dir> -A <hostname> switch --ask-elevate-password

Credits

  • home-manager: for showing me how to do home management without home manager
  • raf: for answering my stupid questions

Honorable mentions

  • nixpkgs src

Read the original on github.com ↗