From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: Guix does not understand config.scm Date: Mon, 23 Apr 2018 22:10:01 +0300 Message-ID: <87h8o1pwmu.fsf@gmail.com> References: <8736zlu3r0.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAgqo-0005ou-EA for help-guix@gnu.org; Mon, 23 Apr 2018 15:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAgqi-0005aR-5G for help-guix@gnu.org; Mon, 23 Apr 2018 15:10:09 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:44728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fAgqh-0005a0-Tq for help-guix@gnu.org; Mon, 23 Apr 2018 15:10:04 -0400 Received: by mail-lf0-x22d.google.com with SMTP id g203-v6so16594683lfg.11 for ; Mon, 23 Apr 2018 12:10:03 -0700 (PDT) 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") 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: Jone Cc: help-guix@gnu.org 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//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