all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Jone <yeger9@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Guix does not understand config.scm
Date: Mon, 23 Apr 2018 22:10:01 +0300	[thread overview]
Message-ID: <87h8o1pwmu.fsf@gmail.com> (raw)
In-Reply-To: <8736zlu3r0.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> (Jone's message of "Mon, 23 Apr 2018 19:22:43 +0000")

Jone (2018-04-23 19:22 +0000) wrote:

> This is my new (and wrong) config:
[...]
>     56	  (sudoers-file (local-file (config-file "/etc/sudoers")))

He-he, I recognize this :-)
I guess you took this line from my os config, anyway...

> Next I run 'guix system reconfigure new.scm':
>
>    new.scm:49:9: config-file: unbound variable
>    hint: Did you forget a `use-modules' form?

... this means that you did not define 'config-file'.

'config-file' is a simple function I use to return file names from my
"~/config" directory, i.e.:

  (config-file "/etc/sudoers")  returns  "/home/<me>/config/etc/sudoers"

So if you want to specify sudoers file, you can just use:

  (sudoers-file (local-file "/path/to/your/sudoers-file"))

-- 
Alex

  parent reply	other threads:[~2018-04-23 19:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-23 19:22 Guix does not understand config.scm Jone
2018-04-23 18:30 ` Thomas Sigurdsen
2018-04-23 18:40 ` Leo Famulari
2018-04-23 19:10 ` Alex Kost [this message]
2018-04-24 16:50   ` Jone

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=87h8o1pwmu.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=yeger9@gmail.com \
    /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.