From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SGS1OZ3tv2XA2AAAqHPOHw:P1 (envelope-from ) for ; Sun, 04 Feb 2024 21:03:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SGS1OZ3tv2XA2AAAqHPOHw (envelope-from ) for ; Sun, 04 Feb 2024 21:03:42 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dadoes.de header.s=default header.b="oOnWN/qw"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=dadoes.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707077021; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=FmjDchd2q175NJ3UdJAxz+46x2WyBWwbazKXAAneGjc=; b=BJw3aI1mx0CXLti5rxNOVM90OadhJ2rLje6t+Z/Re1iJlcuQCGE66MaxeQMAz8Eb92yfg8 8fotwQZDlfg/jDG6cUKu+4M7h/ClUzEZpCPH6usmoVRfTWQ5KTIhlvrkHpax2803obvQxf lFs6Iy8104Z2OKTvvsWB1bDvQqmFT4nbIxvy07VKIUv78Ks0g1xOkgmMovPXNE7ermuP2a R4vjQDFLmR1qmstfyP2vsL3iJ55fV8QyoZT7jsOXAsHpZLRA6ptR2zwjBX7H+VtYFYeaCt V9EWznpL/iFaTPEgYOY2v3nQb3z6wLienC6+adfjQeehADACS/j4gHvkeJZ80A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dadoes.de header.s=default header.b="oOnWN/qw"; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=dadoes.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707077021; a=rsa-sha256; cv=none; b=PS8PyuDK5AX4HWGnr6Fh2R2kYD6OubGgzdX4TCl+6In1N9tljwQkntQX5KsflsZ78RsmDC 7hg94MapDYCNdtQfhtr20fBroOCEdnqg9H/kqPRuwMZpNJ3zMHxpSWBYrSu4CjEK/dL3My PaLcVvbY4r6ky4XeX+i1kHYyYkpF2J+gWU5XezC9Tb4iGj0IzDqJVXIHiXJfA5igyHUEFV aaEvcu/yRpURlQnHW/RvvcJecbUWCAxul3GZj0pSoBRUl2j75zPqIoCZ5Xapu6SiVvZ16e /VisLpiXR6Qmb12ttoVjmNR4oUB15AdnoHHfxaIwLMPRlGBlE93gaBRnHTbM6Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8C75D62A29 for ; Sun, 4 Feb 2024 21:03:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWihQ-00054r-E7; Sun, 04 Feb 2024 15:02:44 -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 1rWihP-00054i-2E for guix-devel@gnu.org; Sun, 04 Feb 2024 15:02:43 -0500 Received: from mail.dadoes.de ([159.69.132.198]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWihM-0005Nl-R5 for guix-devel@gnu.org; Sun, 04 Feb 2024 15:02:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dadoes.de; s=default; t=1707076954; bh=skIvcWzcEsrC1WxZdFWniXLUTtrIr+xmLlp49olwIjk=; h=Date:From:To:Subject:From; b=oOnWN/qwe62YAhTH4hyCOTPE4YzSQGKQ8XWm4qG2EIKUyuQq5s5LXnjgZXhPvL9hk NGHQ9FbZhjH5xdUS1VF3OAxOZb35A2tiGtMdsavExUZkpU8lt5MPnrNiTzrt/eN/19 IzEngiXlaD1SAPl/APcwMtWLsv/LopUgfayVIr4gVX50o4O+wVpzCX5MgnjrICrkza QHJlMLLkIWm1BP9WgMbK5PH8CzEwHWmPhikUnu9U33twKaoBrgEQ59/sQvCaZg03pc I/3isZvnsEQ04xlSO4/EMvIaTg9hoPoXdmAIHH6H+TxFsqYGv8LP21TwnWfEQJr2z0 uBCkk/EdbgcemJ9me/CbjKriUQczFooxe0nPWuMiZODlt2ZDNZu1hT6OHjIPjRnWlP a9ji1WpbImAJDCNVcIFz/Lm/ie1KDAFFkaUr2iFhHLHTtMevcxlYpCMfo/08bGWjgw VFHe58gMrMWHtUXoTE85svtQqYXaiIdAvrLDwehupd109MsF6u5ZlsiokxhtSpgJNA Gq2oj+L6AX/lmyazEBvsIQFfcYIDtQIew0KS/nSdg0MWsWzWuKbBDXQVx+6VIAorY+ 3fVQ8bTCQW1E4IrCTYS1Wy2XBOo2DpUQTR4LHeMbK0INj8+FrWnA3MD7YEHheX7OGA nziXG9OwS3TtGXNG+s6iM0rs= Received: from gnu (unknown [10.10.10.2]) by mail.dadoes.de (Postfix) with ESMTPSA id AA80F81D65 for ; Sun, 4 Feb 2024 21:02:34 +0100 (CET) Date: Sun, 04 Feb 2024 21:02:33 +0100 Message-Id: <87y1c080bq.fsf@dadoes.de> From: Christian Miller To: guix-devel@gnu.org Subject: Experience using the Nix service as a novice user MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.132.198; envelope-from=christian.miller@dadoes.de; helo=mail.dadoes.de 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.86 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -7.86 X-Migadu-Queue-Id: 8C75D62A29 X-TUID: 21nha91EuKzc Hello, I wanted to try out the Nix service and followed the manual. I had some trouble while doing so. The following are the steps I took, the errors I encountered, and how I resolved them. As well as feedback to the experience. I added the nix-service-type and nix package itself according to the Guix manual. (use-modules (gnu)) (use-service-modules nix) (use-package-modules package-management) (operating-system ;; … (packages (append (list nix) %base-packages)) (services (append (list (service nix-service-type)) %base-services))) Those two commands are not provided by the manual. Instead the manual just references to the Nix manual. It would be better to just provide those two commands, since the Nix manual was not helpful. This website[0] was more helpful. nix-channel --add https://nixos.org/channels/nixos-23.11 nixos nix-channel --update At this point, I started encountering problems. The command "nix-channel --update" returns: unpacking channels... error: opening pseudoterminal master: No such device error: program '/gnu/store/mh2nc81cvw321q0lx4y38g4n7b86q88y-nix-2.16.1/bin/nix-env' failed with exit code 1 This was easy to fix because I had found this solution[1] sudo herd restart nix-daemon Now I reran "nix-channel --update" and it worked. After this, I was going on with the manual which said: ln -s "/nix/var/nix/profiles/per-user/$USER/profile" ~/.nix-profile source /run/current-system/profile/etc/profile.d/nix.sh At this point, I thought I would be done, as I had followed all the steps in the manual. Therefore I tried to install a package. nix-env --install mpv However, this did not work as I encountered the following error: error: opening lock file '/nix/var/nix/profiles/per-user/cm/profile.lock': No such file or directory To resolve this, I executed the following command: sudo mkdir /nix/var/nix/profiles/per-user/$USER which resulted in another error because I forgot to set the permissions: error: opening lock file '/nix/var/nix/profiles/per-user/cm/profile.lock': Permission denied Therefore, I also executed the following command: sudo chown -R $USER:users /nix/var/nix/profiles/per-user/$USER Now I could install the Nix version of mpv with nix-env --install mpv I initially attempted this within a VM ($(guix system vm nix.scm) -m 4096 -smp 2) that had 4 GiB of memory and 2 cores. The process was terminated. Is it normal for Nix to require such a large amount of resources to install a package? It might be helpful to include this information in the guide, as I was unsure whether there was a problem with the installation or if 4 GiB of memory was insufficient. Therefore, I tried it on my machine, which has 16 GiB of memory, and it worked. Overall, it feels not very well supported. As a novice user, I found the process to be quite challenging. Additionally, I was hoping for a "working out of the box" experience, which unfortunately was not the case with the Nix service. [0] https://nixos.wiki/wiki/Nix_channels [1] https://issues.guix.gnu.org/63546#7 -- Christian Miller