Skip to content

fix(apply): validate system closure#158

Merged
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-validate-system-closure
Jan 30, 2026
Merged

fix(apply): validate system closure#158
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-validate-system-closure

Conversation

@Sporif
Copy link
Copy Markdown
Collaborator

@Sporif Sporif commented Jan 25, 2026

This tests for the existence of the nixos-version file in the system closure before setting the new system profile.

This is needed because of a nix bug (NixOS/nix#13367) that means that running nixos apply with a path: or git+file: flake URL and the current working directory set to a store path (or symlink to a store path) leads to said store path as the built system closure.

(See NixOS/nixpkgs@ae48ab38 and NixOS/nixpkgs@0f6624e2)

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 25, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sporif Sporif force-pushed the apply-fix-validate-system-closure branch from 0cb7484 to 8648d7f Compare January 28, 2026 06:28
@Sporif Sporif force-pushed the apply-fix-validate-system-closure branch from 8648d7f to fc48f4f Compare January 30, 2026 12:45
@water-sucks water-sucks merged commit db3874b into nix-community:main Jan 30, 2026
2 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.

2 participants