Flakes for my NixOS systems
Find a file
Kyle Brown cf8459857a flake.lock: Update
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)
2023-11-10 14:17:47 -08:00
common fix: Make plugins work, and shut up error 2023-11-10 11:59:04 -08:00
home-manager fix: Seperate HM everywhere 2023-11-10 12:03:40 -08:00
hosts fix: Seperate HM everywhere 2023-11-10 12:03:40 -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 flake.lock: Update 2023-11-10 14:17:47 -08:00
flake.nix flake.lock: Update 2023-11-10 14:17:47 -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.