You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
via the NIXOS_GENERATORS_FORMAT_SEARCH_PATH environment variable and
--format-search-path CLI option.
Additionally, introduce the --show-format-search-path option, which
causes nixos-generate to print the list of paths it will search for
format files.
@@ -268,6 +268,46 @@ multiple custom formats. `nixosGenerate` will then match against these custom f
268
268
* If boot fails for some reason, you will not get a recovery shell unless the root user is enabled, which you can do by setting a password for them (`users.users.root.password = "something";`, possibly `users.mutableUsers = true;` so you can interactively change the passwords after boot)
269
269
* After booting, if you intend to use `nixos-switch`, consider using `nixos-generate-config`.
270
270
271
+
## Using custom formats
272
+
273
+
You can choose a format by telling `nixos-generate` its full path:
0 commit comments