Flakes for my NixOS systems
Find a file
2023-10-27 18:21:54 -07:00
common feat: Formatting and cubert darwin-nix 2023-10-27 18:08:23 -07:00
hosts feat: Formatting and cubert darwin-nix 2023-10-27 18:08:23 -07: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 feat: Emacs installed, doom ready to be installed 2023-10-27 16:29:24 -07:00
flake.nix feat: Formatting and cubert darwin-nix 2023-10-27 18:08:23 -07:00
justfile feat: initial commit 2023-10-22 20:11:12 -07:00
nixpkgs.nix fix: formatting 2023-10-27 17:15:03 -07:00
README.md fix: Add readme 2023-10-22 20:26:24 -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
  • darwin: nix-darwin host configurations
  • home-manager: home-manager configurations & features
  • modules: nixos and home-manager modules that could potentially be upstreamed
  • nixos: NixOS host configurations & features
  • overlays: nixpkgs overlays, including local packages & nixpkgs-unstable
  • pkgs: 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.