From: znavko@disroot.org
To: rendaw <7e9wc56emjakcm@s.rendaw.me>, help-guix@gnu.org
Subject: Re: G-Expressions manual. change user shell in guix config.scm
Date: Sat, 04 May 2019 11:19:00 +0000 [thread overview]
Message-ID: <9345e08df01afe19f1fd987470e986d1@disroot.org> (raw)
In-Reply-To: <47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me>
(shell #~#$dash) -- compiles too, but again:
bob $ su - mom
Password:
/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
bob $
this works all right: (shell (file-append dash "/bin/dash"))
May 4, 2019 11:12 AM, "rendaw" <7e9wc56emjakcm@s.rendaw.me> wrote:
> On 5/4/19 7:53 PM, znavko@disroot.org wrote:
>
>> For $~#$dash it says unbound variable:
>>
>> (use-mosules ...
>> (gnu packages shells)
>> (guix gexp)
>> )
>> ...
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell $~#$dash))
>>
>> # guix system reconfigure config.scm
>> /root/config.scm:24:32: error: #{$~#$dash}#: unbound variable
>> hint: Did you forget a `use-modules' form?
>
> You have $~#$ but you should have #~#$ instead. But this is the same as
> just having `(shell dash)` which causes the next error:
>
>> For just a string 'shell dash' compilation is ok, but after user login in terminal it says 'dash is
>> a directry' and does not allow login:
>>
>> (user-account (name "mom") (group "users")
>> (supplementary-groups '("wheel" "netdev" "audio" "video"))
>> (home-directory "/home/mom")
>> (shell dash))
>>
>> # guix system reconfigure config.scm
>> ..ok...
>>
>> bob $
>> bob $ su - mom
>> Password:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2:
>> /gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2: Is a directory
>> bob $
>
> `dash` is a package object which is "lowered" and becomes a string of
> the path to the directory:
> `/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2`
>
> `(shell ...)` needs a path to an executable (the shell program), that
> is: `/gnu/store/bqmib4vf9mr8dkqx4dqpcqrnb93giwci-dash-0.5.10.2/bin/dash`
>
> Therefore you need the string-append or file-append expressions to add
> the final "/bin/dash". See the examples from my previous email.
>
> Cheers,
> rendaw
next prev parent reply other threads:[~2019-05-04 11:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-03 15:36 G-Expressions manual. change user shell in guix config.scm znavko
2019-05-04 3:11 ` rendaw
2019-05-04 3:13 ` rendaw
2019-05-04 6:11 ` rendaw
2019-05-04 10:53 ` znavko
2019-05-04 11:06 ` rendaw
2019-05-04 11:19 ` znavko [this message]
2019-05-04 11:24 ` rendaw
2019-05-04 11:29 ` znavko
2019-05-04 11:36 ` rendaw
2019-05-04 11:48 ` znavko
2019-05-04 11:50 ` rendaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9345e08df01afe19f1fd987470e986d1@disroot.org \
--to=znavko@disroot.org \
--cc=7e9wc56emjakcm@s.rendaw.me \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).