From patchwork Tue Feb 6 13:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Zancanaro X-Patchwork-Id: 59864 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4623F27BBEB; Tue, 6 Feb 2024 13:20:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DD57627BBEA for ; Tue, 6 Feb 2024 13:20:17 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXLMn-0003ma-AK; Tue, 06 Feb 2024 08:20:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXLMb-0003ll-8F for guix-patches@gnu.org; Tue, 06 Feb 2024 08:19:51 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXLMa-000643-WF for guix-patches@gnu.org; Tue, 06 Feb 2024 08:19:49 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXLMo-0007hC-4j for guix-patches@gnu.org; Tue, 06 Feb 2024 08:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68950] [PATCH] doc: Document required setup steps for Nix service. Resent-From: Carlo Zancanaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Feb 2024 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68950@debbugs.gnu.org Cc: christian.miller@dadoes.de X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170722556729527 (code B ref -1); Tue, 06 Feb 2024 13:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2024 13:19:27 +0000 Received: from localhost ([127.0.0.1]:53416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXLMF-0007g9-03 for submit@debbugs.gnu.org; Tue, 06 Feb 2024 08:19:27 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXLMD-0007fv-MH for submit@debbugs.gnu.org; Tue, 06 Feb 2024 08:19:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXLLu-0003cX-LN for guix-patches@gnu.org; Tue, 06 Feb 2024 08:19:06 -0500 Received: from voltorb.zancanaro.id.au ([45.77.50.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXLLr-0005wa-QK for guix-patches@gnu.org; Tue, 06 Feb 2024 08:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=k1; bh=Gmi41Vc7DjpVGk9 PzHma20v/O9Ikc0R71jAXIYnmJME=; h=references:in-reply-to:date:subject: cc:to:from; d=zancanaro.id.au; b=DM+y/DMTe/AOyFsb13/XcXx816YG0vIOo65v8 D+Xzl/ySFMFGjo3966YHujOGjy1n4QnULhH520K6r9n0jVgL/4nX9ngZ+DAEw4XHuAeI89 iXwP0njsVqrMgfZMyIbVyL33sqeaKCBUbqwsxfdZd+5MP/UY7Taphy9xonTRxNfE= Received: by voltorb.zancanaro.id.au (OpenSMTPD) with ESMTPSA id 7c34336a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 6 Feb 2024 13:18:56 +0000 (UTC) From: Carlo Zancanaro Date: Wed, 7 Feb 2024 00:18:49 +1100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <87y1c080bq.fsf@dadoes.de> References: <87y1c080bq.fsf@dadoes.de> MIME-Version: 1.0 Received-SPF: pass client-ip=45.77.50.64; envelope-from=carlo@zancanaro.id.au; helo=voltorb.zancanaro.id.au X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 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