Various config files and sundries
common | ||
files | ||
home | ||
hosts | ||
overlays | ||
pkgs | ||
.envrc | ||
flake.lock | ||
flake.nix | ||
justfile | ||
README.md |
NixOS Config
IT in a box!
Bootstrapping from a fresh NixOS installation
-
Install NixOS
-
Clone this repo:
nix-shell -p git --command 'git clone https://patagia.dev/dln/nixos-config.git'
-
Ensure host configuration exists at
./nixos-config/hosts/${HOSTNAME}
and contains at minimum the hardware configuration. The NixOS installer will write this out to/etc/nixos/hardware-configuration.nix
. -
Apply configuration:
sudo nixos-rebuild boot --flake ./nixos-config#${HOSTNAME}
Use
- Clone this repo somewhere convenient, like
~/src/shelman/nixos-config
- Apply configuration:
just switch
Update
Update nixpkgs and switch: just update
Home Manager
just home-switch