Flakes for my NixOS systems
common | ||
hosts | ||
overlays | ||
.envrc | ||
.gitignore | ||
flake.lock | ||
flake.nix | ||
justfile | ||
nixpkgs.nix | ||
README.md | ||
shell.nix |
My nix configurations
This repo has my personal configuration for NixOS and nix-darwin, including a cross-platform home-manager configuration used by both.
Refactored from my old config using Misterio77's awesome starter template as a starting point. Also borrowed from Yusuefnapora for much of this.
Structure
flake.nix
: flake entrypointdarwin
: nix-darwin host configurationshome-manager
: home-manager configurations & featuresmodules
: nixos and home-manager modules that could potentially be upstreamednixos
: NixOS host configurations & featuresoverlays
: nixpkgs overlays, including local packages & nixpkgs-unstablepkgs
: local packages that could potentially be upstreamed to nixpkgs
Usage
The justfile
defines a few recipies using the just command runner. Run just --list
to list all recipies. The most important are just switch
, which builds the config (for the current hostname by default) and switches to it, just build
which builds but doesn't switch, and just trace
, which prints the stacktrace when things fail to build.
If you don't have just
installed but do have nix, run nix develop
to open a bootstrap shell environment.