Flakes for my NixOS systems
Flake lock file updates: • Updated input 'emacs': 'github:nix-community/emacs-overlay/1a47948bbbe3eea50deaabf5f260d3b2a233aaa5' (2023-11-09) → 'github:nix-community/emacs-overlay/2dc0beb6d0f3d19c577faab69b6338fb5a1ce17e' (2023-11-10) • Updated input 'hyprland': 'github:hyprwm/Hyprland/b8a615ffb892aaa35a15dc732208bb7ad2a60209' (2023-11-10) → 'github:hyprwm/Hyprland/1e6e9b66a5837d62d374edd405bdf561813ebbce' (2023-11-10) |
||
---|---|---|
common | ||
home-manager | ||
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 entrypointhosts
: host configurationshome-manager
: home-manager configurations & featuresnixos
: NixOS configurations & featurespkgs
: local packages that could potentially be upstreamed to nixpkgscommon
: shared files between more than one hostmodules
: nixos and home-manager modules that could potentially be upstreamed
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.