home-manager: add more pass-through options

Specifically, pass through --[extra-]experimental-features to Nix.
main
Shamrock Lee 2 years ago committed by Robert Helgesson
parent 03b7495183
commit 23a9f9127c
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
  1. 7
      docs/nix-flakes.adoc
  2. 8
      home-manager/home-manager

@ -18,10 +18,13 @@ Either set in `nix.conf`
[source,bash]
experimental-features = nix-command flakes
+
or pass them to `nix` by
or pass them to `nix` and `home-manager` by
+
[source,console]
nix --experimental-features "nix-command flakes" your command
----
$ nix --extra-experimental-features "nix-command flakes" <sub-commands>
$ home-manager --extra-experimental-features "nix-command flakes" <sub-commands>
----
* Prepare your Home Manager configuration (`home.nix`).
+

@ -608,6 +608,14 @@ while [[ $# -gt 0 ]]; do
PASSTHROUGH_OPTS+=("$opt" "$1" "$2")
shift 2
;;
--experimental-features)
PASSTHROUGH_OPTS+=("$opt" "$1")
shift
;;
--extra-experimental-features)
PASSTHROUGH_OPTS+=("$opt" "$1")
shift
;;
--no-out-link)
NO_OUT_LINK=1
;;

Loading…
Cancel
Save