diff --git a/index.html b/index.html index 0233c8f2..34c33925 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ -
ca.desrt.dconf
or dconf.service
?+
ca.desrt.dconf
or dconf.service
?This manual will eventually describe how to install, use, and extend Home Manager.
@@ -249,8 +249,19 @@ The support is still experimental and may change in backwards incompatible ways.
Install Nix 2.4 or later, or have it in nix-shell
.
Enable experimental features nix-command
and flakes
.
-
Either set in nix.conf
experimental-features = nix-command flakes
or pass them to nix
and home-manager
by
$ nix --extra-experimental-features "nix-command flakes" <sub-commands> -$ home-manager --extra-experimental-features "nix-command flakes" <sub-commands>
+
+When using NixOS, add the following to your configuration.nix
and rebuild your system.
+
nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; +};
+If you are not using NixOS, add the following to nix.conf
(located at ~/.config/nix/
or /etc/nix/nix.conf
).
+
experimental-features = nix-command flakes
You may need to restart the Nix daemon with, for example, sudo systemctl restart nix-daemon.service
.
+Alternatively, you can enable flakes on a per-command basis with the following additional flags to nix
and home-manager
:
+
$ 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
).
Unlike the channel-based setup,
home.nix
will be evaluated when the flake is built,
diff --git a/tools.html b/tools.html
index 40e9fbc1..532e181c 100644
--- a/tools.html
+++ b/tools.html
@@ -1,6 +1,6 @@
-
home-manager +
home-manager — reconfigure a user environment
home-manager
{
build
|
@@ -84,7 +84,7 @@
|
--verbose
}
- ]
This command updates the user environment so that it corresponds to the
configuration specified in ~/.config/nixpkgs/home.nix
or ~/.config/nixpkgs/flake.nix
.
@@ -153,7 +153,7 @@ available for immediate garbage collection.
-
The tool accepts the options
-A attrPath
@@ -265,15 +265,15 @@
--verbose
Activates verbose output. -