Skip to content

fix(apply): Fix dry builds#157

Merged
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-dry-builds
Jan 28, 2026
Merged

fix(apply): Fix dry builds#157
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:apply-fix-dry-builds

Conversation

@Sporif
Copy link
Copy Markdown
Collaborator

@Sporif Sporif commented Jan 25, 2026

The man page states that the dry-build alias is nixos apply --dry --no-activate --no-boot --output ./result, but this does not work as --dry and --output are mutually exclusive flags.

Removing --output then triggers a validation error, since the code currently requires --output when both --no-activate and --no-boot are set, which are themselves required for a dry build.

This change updates the logic to allow either --output or --dry in this case, and adjusts the man page to use the correct alias.

@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.


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-dry-builds branch from 2900624 to a2162b3 Compare January 25, 2026 03:18
Copy link
Copy Markdown
Collaborator

@water-sucks water-sucks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, this is a nice catch! I do not use dry builds very often, no idea how this slipped into here.

@water-sucks water-sucks merged commit aa97196 into nix-community:main Jan 28, 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