diff mbox series

[bug#68950] doc: Document required setup steps for Nix service.

Message ID c2a01699866dce6f7c95637f98fd61fb669f02e7.1707225529.git.carlo@zancanaro.id.au
State New
Headers show
Series [bug#68950] doc: Document required setup steps for Nix service. | expand

Commit Message

Carlo Zancanaro Feb. 6, 2024, 1:18 p.m. UTC
* doc/guix.texi (Nix service): Add specific channel setup commands, add
commands to create profile directory.
---
 doc/guix.texi | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)


base-commit: a4464bd0975c811f18af98f69032b29bddda5b81

Comments

Ludovic Courtès Feb. 27, 2024, 10:24 a.m. UTC | #1
Carlo Zancanaro <carlo@zancanaro.id.au> skribis:

> * doc/guix.texi (Nix service): Add specific channel setup commands, add
> commands to create profile directory.

Applied, thanks!
diff mbox series

Patch

diff --git a/doc/guix.texi b/doc/guix.texi
index b76df868f8..0ac245a376 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -40313,16 +40313,31 @@  Miscellaneous Services
 
 @itemize
 @item Add a Nix channel and update it.  See
-@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}.
+@url{https://nixos.wiki/wiki/Nix_channels, Nix channels} for more
+information about the available channels.  If you would like to use the
+unstable Nix channel you can do this by running:
+
+@example
+$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
+$ nix-channel --update
+@end example
+
+@item Create your Nix profile directory:
+
+@example
+$ sudo mkdir -p /nix/var/nix/profiles/per-user/$USER
+$ sudo chown $USER:root /nix/var/nix/profiles/per-user/$USER
+@end example
 
 @item Create a symlink to your profile and activate Nix profile:
-@end itemize
 
 @example
 $ ln -s "/nix/var/nix/profiles/per-user/$USER/profile" ~/.nix-profile
 $ source /run/current-system/profile/etc/profile.d/nix.sh
 @end example
 
+@end itemize
+
 @end defvar
 
 @deftp {Data Type} nix-configuration