What's Changed
Breaking Changes
- feat(option)!: update optnix, use interactive mode by default by @water-sucks in #92
The optnix
dependency has been updated to v0.2.0. This brings some new behavior that is now mirrored in nixos-cli
: namely, interactive mode (previously hidden with nixos option -i
) is now the default.
To opt out of interactive mode and get the original behavior of nixos option
back, use nixos option -n
. Using JSON or value-only output implicitly uses this mode as well.
Bug Fixes
- fix(generation): do not fail if nixos-version.json is not found by @water-sucks in #85
- fix(nixopts): remove redundant -- from -I flag construction by @water-sucks in #86
- fix(configuration): use dirname for configuration if path is to a direct file by @water-sucks in #87
- fix(apply): use correct error message for dirty git trees by @water-sucks in #89
- fix(build): add guards for platform-specific support by @water-sucks in #90
- fix(init): call nixpkgs version function from build opts by @water-sucks in #91
Other
- refactor(build): use immutable functions for retrieving compile-time variables by @water-sucks in #84
Shoutouts
Huge shoutout to @Wishmater for finding many of these bugs in the legacy nixos-cli
implementation.
Full Changelog: 0.12.3...0.13.0