From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: G-Expressions manual. change user shell in guix config.scm Date: Sat, 04 May 2019 11:19:00 +0000 Message-ID: <9345e08df01afe19f1fd987470e986d1@disroot.org> References: <47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me> <020ade7dd57cfe2182b3aa360a8cf13d@disroot.org> <768fb29d220fa00af3cb133b0909b870@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMsh7-0001v1-Vx for help-guix@gnu.org; Sat, 04 May 2019 07:19:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMsh7-0008MV-13 for help-guix@gnu.org; Sat, 04 May 2019 07:19:05 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMsh6-0008Ll-EO for help-guix@gnu.org; Sat, 04 May 2019 07:19:04 -0400 In-Reply-To: <47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: rendaw <7e9wc56emjakcm@s.rendaw.me>, help-guix@gnu.org (shell #~#$dash) -- compiles too, but again:=0A=0Abob $ su - mom=0APasswo= rd: =0A/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: /gnu/st= ore/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory=0Abob = $ =0A=0Athis works all right: (shell (file-append dash "/bin/dash"))=0A= =0A=0AMay 4, 2019 11:12 AM, "rendaw" <7e9wc56emjakcm@s.rendaw.me> wrote:= =0A=0A> On 5/4/19 7:53 PM, znavko@disroot.org wrote:=0A> =0A>> For $~#$da= sh it says unbound variable:=0A>> =0A>> (use-mosules ...=0A>> (gnu packag= es shells)=0A>> (guix gexp)=0A>> )=0A>> ...=0A>> (user-account (name "mom= ") (group "users")=0A>> (supplementary-groups '("wheel" "netdev" "audio" = "video"))=0A>> (home-directory "/home/mom")=0A>> (shell $~#$dash))=0A>> = =0A>> # guix system reconfigure config.scm=0A>> /root/config.scm:24:32: e= rror: #{$~#$dash}#: unbound variable=0A>> hint: Did you forget a `use-mod= ules' form?=0A> =0A> You have $~#$ but you should have #~#$ instead. But= this is the same as=0A> just having `(shell dash)` which causes the next= error:=0A> =0A>> For just a string 'shell dash' compilation is ok, but a= fter user login in terminal it says 'dash is=0A>> a directry' and does no= t allow login:=0A>> =0A>> (user-account (name "mom") (group "users")=0A>>= (supplementary-groups '("wheel" "netdev" "audio" "video"))=0A>> (home-di= rectory "/home/mom")=0A>> (shell dash))=0A>> =0A>> # guix system reconfig= ure config.scm=0A>> ..ok...=0A>> =0A>> bob $=0A>> bob $ su - mom=0A>> Pas= sword:=0A>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2:=0A= >> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a direct= ory=0A>> bob $=0A> =0A> `dash` is a package object which is "lowered" and= becomes a string of=0A> the path to the directory:=0A> `/gnu/store/bqmib= 4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2`=0A> =0A> `(shell ...)` needs a= path to an executable (the shell program), that=0A> is: `/gnu/store/bqmi= b4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2/bin/dash`=0A> =0A> Therefore y= ou need the string-append or file-append expressions to add=0A> the final= "/bin/dash". See the examples from my previous email.=0A> =0A> Cheers,= =0A> rendaw