From: rendaw <7e9wc56emjakcm@s.rendaw.me>
To: znavko@disroot.org, help-guix@gnu.org
Subject: Re: G-Expressions manual. change user shell in guix config.scm
Date: Sat, 4 May 2019 20:06:45 +0900 [thread overview]
Message-ID: <47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me> (raw)
In-Reply-To: <768fb29d220fa00af3cb133b0909b870@disroot.org>
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:06 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 [this message]
2019-05-04 11:19 ` znavko
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47df8d6d-9d34-5abe-a7f7-c4f5a1c6a7f2@s.rendaw.me \
--to=7e9wc56emjakcm@s.rendaw.me \
--cc=help-guix@gnu.org \
--cc=znavko@disroot.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.