Skip to content

shayne/nixos-config

Repository files navigation

NixOS & nix-darwin Configurations

This repository houses my NixOS and macOS (nix-darwin) configurations. The system loader lives in lib/loadSystems.nix and lib/mkSystem.nix, with per-host configs under systems/ and user config under home-manager/.

Structure

  • systems/base/: shared defaults for Linux and Darwin
  • systems/<hostname>/: per-host overrides (current host: m4mbp)
  • home-manager/<user>/: shared user config and per-host overlays
  • modules/: reusable Nix modules
  • overlays/ + pkgs/: custom overlays/packages

Common Commands

  • mise run lint: run deadnix, nixpkgs-fmt, and statix (same as pre-commit)
  • mise run check: run lint + nix flake check --all-systems, then build the current host
  • mise run (or mise run default): build and switch the current host (Darwin uses darwin-rebuild switch)

Pre-commit

Install hooks with: pre-commit install and pre-commit install --hook-type prepare-commit-msg. Note: pre-commit install only installs the default pre-commit hook; the prepare-commit-msg hook must be installed explicitly. You can run all hooks manually with pre-commit run --all-files.

Current Systems

  • m4mbp — Apple Silicon MacBook Pro running nix-darwin

The repo remains multi-system capable (aarch64/x86_64, Linux/Darwin) for future hosts.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •