Skip to content

fix(install): use cobra.Command to set include flag for nixos-config value#109

Merged
water-sucks merged 1 commit intonix-community:mainfrom
water-sucks:fix-legacy-install-default-location
Oct 19, 2025
Merged

fix(install): use cobra.Command to set include flag for nixos-config value#109
water-sucks merged 1 commit intonix-community:mainfrom
water-sucks:fix-legacy-install-default-location

Conversation

@water-sucks
Copy link
Copy Markdown
Collaborator

The nixos-config= value was not getting copied into the command array for nixos install, since it was not set in the actual cobra.Command pflag set for the install subcommand. Because of this, the translation layer ignored the value for the include flag for the nixos-config= value and thus was installing the WRONG CONFIGURATION into the destination.

As such, this is a HUGE problem with legacy installs, I should have tested this better, unfortunately.

This PR sets the flag properly using the pflag Set() construct.

@water-sucks water-sucks merged commit c8f5ce1 into nix-community:main Oct 19, 2025
1 check passed
@water-sucks water-sucks deleted the fix-legacy-install-default-location branch October 19, 2025 06:42
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