Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Latest commitHistory | ||||
Overview
My NixOS system conigurations.
Installation
- Follow the NixOS manual to get the Minimal NixOS base system installed onto the desired machine.
- Clone this repo onto the machine and note it's path
git clone https://github.com/mewoocat/NixOS.git
- Create a host configuration in
NixOS/hosts/
- This usually involves copying the
hardware-configuration.nixthat was generated automatically by NixOS during the initial install
- Add a nixos system as an attribute to the set returned by
./default.nix
<hostname> = makeNixosSystem ./host/<hostname>/configuration.nix;
- 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

