From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WA2VLeg/BGRA/gAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 08:08:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MFyCLeg/BGSjcQEAauVa8A (envelope-from ) for ; Sun, 05 Mar 2023 08:08:24 +0100 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 8FD97279ED for ; Sun, 5 Mar 2023 08:08:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYiT3-00018E-J4; Sun, 05 Mar 2023 02:07:37 -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 1pYiT1-000174-2T for help-guix@gnu.org; Sun, 05 Mar 2023 02:07:35 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYiSy-00010Y-Ix for help-guix@gnu.org; Sun, 05 Mar 2023 02:07:34 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7811d574; Sun, 5 Mar 2023 07:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=fypRef7Ba3Yc A5scCgoxQThv1FxTDkuOFU27DB4h03A=; b=HRZHNJUMV5e6bsKxhv4jr0Rlmfu3 qRw2QIv+CRb4g+WwpYlsIXTXLb3JG0y9+spD1LePR/42iJ3LksqBEb/QRryjXC2L GYjMJDSnvbPVHJXQ5WWTWR2/vKdO4O4juQ5KnRY7hhtBijdT7UpHevfRYa1HLZmm xpkx9KNgPO3BNy957uEF73vhv8WxSSzproGDHwP3qaPAD9+ew/W/kCk1HhjhDGSn BPpQ1oUx8oguIMEb2A7jwC/fsFg7voIyinwbdgE8Qo47oJD2MkisxAldKZ6FU99c eMODkUE9Xmi5JEMfeiqhMmArpZhvUsjuviViTsryIIcF/9lBN0zeZJ4E5A== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 81c420a3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 5 Mar 2023 07:07:23 +0000 (UTC) Date: Sun, 05 Mar 2023 08:06:59 +0100 From: Julien Lepiller To: help-guix@gnu.org, =?UTF-8?B?5a6L5paH5q2m?= , Rodrigo Morales Subject: Re: Newbie question: Why my system has so many shells.scm files? User-Agent: K-9 Mail for Android In-Reply-To: <87mt4snh3m.fsf@envs.net> References: <87mt4snh3m.fsf@envs.net> Message-ID: <7F184C0C-2BD3-41D2-AC40-E1A46B302CD8@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678000104; a=rsa-sha256; cv=none; b=DYjk+7KNBoDNN36lW5f138LHhaCu5GHAqWxuRIDE042wmd39JXkIugJ009QtXJzXGbHvYo MTVxVpNY+yV/7bYSFQ/WlD0OFqWC6q1HExe8/hCsUYOioNae5TxzIP6Qdwql0NkqrDObuQ Kv7NOTnSpoHwf1sRx3ZPB4WxXtXS5OGljI5ZBth77P0ehlFQPE/d9gUQqS1HWpr3oJLgqQ itl1olETS9ayRgJeqM3R26nUx41JKkxeILRZug0b7cFUWiOvSSN2yqS88zEdc3mQ6J9zFM pNHmcg8gO8zlTWc/MTjAx/Ytk7fCxL/f7Ikfe31nDMMIV3aotyFRUpTctCy7Ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HRZHNJUM; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678000104; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LfdBDOPcyfDVJXPJE2DsWjapFTDPvru9Xvoh9o21qS4=; b=tQX5CU6l77s1I6Y+dzLer9plXaKNkwUEXEiiW1bcD/h3uhIy2eINl/W+cfTC6sylSBtMyL kTgUu/4h1WHT2iEhq4mDm6EdwOqvfcyjme+FUrfMo+c56PeEgk0Gi+g8wProx6RZvsGM4s PoOK6E5dly2nPk9UdXC7egPemsX/+Q1qjBmaSvc9cqF04v+zJk4pGb0aZ0am9hHLs7gKfK F40qALuz90MV9sCVCSnqYQ+XjkTn75eaCnj9MetdJyB1TCTGUF01d7Womt6IH7r2MuXiCr fATAwtrINJp4G33K5ufoGMQp0nvJ/3xcvIDySMSeEneKJPlrbnx0BnvQPNs8Dg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.92 X-Spam-Score: -3.92 X-Migadu-Queue-Id: 8FD97279ED Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=HRZHNJUM; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu X-TUID: pTqC3qyoftCu Another possibility is to use guix gc -R `readlink -f /path/to/a/profile`= =2E Note that you have multiple profiles (system, user, pull, maybe home)= =2E The command lists all live paths under a given store path=2E In this case,= all that is accessible to the profile you asked for=2E It's granularity is= the store path, not exact files, so even a store path is live and has a sh= ells=2Escm in it, doesn't mean it's actually used=2E Also, the shells=2Escm you found can be split in two categories=2E There a= re two different guile modules: (gnu packages shells) has packages related to shells (bash, zsh, =E2=80=A6= ) (gnu home services shells) has service definitions for guix home that are = related to shells (creating a bashrc for instance) Some of the store paths you mention seem to be sources that could probably= be garbage collected=2E Le 5 mars 2023 02:04:45 GMT+01:00, "=E5=AE=8B=E6=96=87=E6=AD=A6" a =C3=A9crit=C2=A0: >Rodrigo Morales writes: > >> Table of Contents >> _________________ >> >> 1=2E The context >> 2=2E The question >> >> >> 1 The context >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Newbie user here=2E I'm curious about how `home-bash-configuration' >> works, so I wanted to jump to its definition=2E I know that one way o= f >> doing this is cloning the Guix repository and executing grep to searc= h >> that string=2E In fact, I did this and found it in >> `gnu/home/services/shells=2Escm'=2E >> >> Using common sense, I knew that that file also existed in my system, >> so I was wondering how I could have accomplished the same objective >> without having to download the Git repository, just in case some day = I >> don't have internet connection >> >> ,---- >> | locate shells=2Escm | grep '/gnu/store' >> `---- >> [=2E=2E=2E] >> >> 2 The question >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> How to know which of these files is currently being used by my >> system? I'm sure not all of them are being used=2E I'm somewhat >> familiar with how generations work, but in other words, I'd like to >> know how to determine which of these files is the one that is being >> used by the current generation=2E > >First to find out what files are currently going to be used the system: > > $ guix repl > > %load-path > >I got: >``` >$1 =3D ("/gnu/store/sg5mf194lisl59b1bm3a7x6llf3vvhlv-guix-module-union/sh= are/guile/site/3=2E0" "/gnu/store/qbqdkziw7222077fn4z2x5n91185ivis-guile-3= =2E0=2E9/share/guile/3=2E0" "/gnu/store/qbqdkziw7222077fn4z2x5n91185ivis-gu= ile-3=2E0=2E9/share/guile/3=2E0" "/gnu/store/qbqdkziw7222077fn4z2x5n91185iv= is-guile-3=2E0=2E9/share/guile/site/3=2E0" "/gnu/store/qbqdkziw7222077fn4z2= x5n91185ivis-guile-3=2E0=2E9/share/guile/site" "/gnu/store/qbqdkziw7222077f= n4z2x5n91185ivis-guile-3=2E0=2E9/share/guile" "/home/iyzsong/=2Econfig/guix= /current/share/guile/site/3=2E0" "/run/current-system/profile/share/guile/s= ite/3=2E0" >``` > >In the first directory, it has: > /gnu/store/sg5mf194lisl59b1bm3a7x6llf3vvhlv-guix-module-union/share/gui= le/site/3=2E0/gnu/home/services/shells=2Escm > =20 >These scm files are guile modules, which will be used by the time 'guix' = run=2E > > >And to find out what the current generation are using, first you need to >find out what guix version(s) being used=2E >For system profile, /run/current-system/provenace or >/run/current-system/channels=2Escm has the version (guix commit) info=2E >For user profile, ~/=2Eguix-profile/manifest have it in the provenance pr= operty=2E > >Then given the commit, how to get the files? > >If you 'guix pull' before as I did, it can be: >``` >cd ~/=2Ecache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7= apsnalwq >git checkout -f ${COMMIT} >``` > >Or 'guix pull --commit ${COMMIT}', or git clone a new guix repository=2E= =2E=2E > > >Hope this helps! >