Skip to content

feat(configuration.nix): use Lix as the system Nix distribution - #69

Merged
phorcys420 merged 1 commit into
mainfrom
phorcys/box-lix
Aug 24, 2026
Merged

feat(configuration.nix): use Lix as the system Nix distribution#69
phorcys420 merged 1 commit into
mainfrom
phorcys/box-lix

Conversation

@phorcys420

Copy link
Copy Markdown
Member

Switch The Box from upstream CppNix to Lix as the system Nix distribution.

What

nix.package = pkgs.lix;

Added next to the existing nix.settings block in configuration.nix. pkgs.lix (2.93.4) comes from the already-pinned nixpkgs 25.11, so the daemon, nixos-rebuild, and the nix CLI all run Lix. No new flake input, no flake.lock churn, no from-source build.

Validation

Evaluated with Lix locally:

  • nixosConfigurations.*.config.nix.package -> lix 2.93.4
  • make check (flake eval, all systems) - pass
  • make fmt/check + make lint - clean (0 changed)

Scope note

This swaps the system Nix. It does not overlay nixpkgs, so packages that reference pkgs.nix in their closure still pull CppNix. If a full distribution swap is wanted, the follow-up options are:

  • official lix-project/nixos-module (nixosModules.lixFromNixpkgs to avoid source builds), or
  • a plain overlay: nixpkgs.overlays = [ (f: p: { nix = p.lix; }) ]

Happy to switch to either if preferred.

Decision log
  • Goal: run Lix instead of vanilla Nix on the box.
  • nixpkgs 25.11 (already pinned) ships pkgs.lix = 2.93.4, so no extra input or source build is needed.
  • Chose nix.package = pkgs.lix over the official NixOS module because it is the smallest correct change, matches the box's reproducibility posture (everything from the pinned nixpkgs), and avoids ballooning ISO build times with a from-source Lix.
  • Tradeoff: pkgs.nix consumers stay on CppNix. The module/overlay alternatives (noted above) cover that if desired.

Opened by Coder Agents on behalf of @phorcys420.

Set nix.package to pkgs.lix so the daemon, nixos-rebuild, and the nix CLI
run Lix instead of upstream CppNix. Lix comes from the already-pinned
nixpkgs (2.93.4), so this needs no new flake input or from-source build.
@phorcys420
phorcys420 marked this pull request as ready for review August 24, 2026 22:38
@phorcys420
phorcys420 merged commit 3bb1a5f into main Aug 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant