Flakes for my NixOS systems
Find a file
2023-11-17 12:52:51 -08:00
common feat: hy3 2023-11-15 22:08:20 -08:00
home-manager feat: Add protonmail 2023-11-17 12:52:51 -08:00
hosts feat: Formatting, and small QOL 2023-11-15 17:58:45 -08:00
modules feat: Add protonmail 2023-11-17 12:52:51 -08:00
overlays fix: formatting 2023-10-27 17:15:03 -07:00
.envrc feat: Direnv shell 2023-10-27 18:21:54 -07:00
.gitignore feat: Initial amy support 2023-10-24 20:18:12 -07:00
flake.lock fix: Hy3 is bad, and it should feel bad 2023-11-15 22:40:34 -08:00
flake.nix fix: Hy3 is bad, and it should feel bad 2023-11-15 22:40:34 -08:00
justfile flake.lock: Update 2023-11-10 14:17:47 -08:00
nixpkgs.nix fix: formatting 2023-10-27 17:15:03 -07:00
README.md fix: cleanup 2023-10-28 12:37:48 -07:00
shell.nix feat: Direnv shell 2023-10-27 18:21:54 -07:00

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 entrypoint
  • hosts: host configurations
  • home-manager: home-manager configurations & features
  • nixos: NixOS configurations & features
  • pkgs: local packages that could potentially be upstreamed to nixpkgs
  • common: shared files between more than one host
  • modules: 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.