Verify Nix Config (Compile Only)
Run a build-only check after changes to Nix or Emacs configuration to catch errors without activating a profile.
Trigger
Use this workflow whenever editing:
- •Any
*.nixfile (e.g.,common.nix,home.nix,osx.nix,flake.nix) - •
emacs.el
Workflow
- •
Build activation package (no switch)
bashnix build .#homeConfigurations.company-mbp.activationPackage
This compiles the Home Manager profile without applying it.
- •
If working on the Linux profile
bashnix build .#homeConfigurations.homelab-devbox.activationPackage
Notes
- •Do not run
home-manager switchfor verification. - •If the build fails, report the error output and stop before further edits.