From: Jone <yeger9@gmail.com>
To: help-guix@gnu.org
Subject: Guix does not understand config.scm
Date: Mon, 23 Apr 2018 19:22:43 +0000 [thread overview]
Message-ID: <8736zlu3r0.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> (raw)
This is my new (and wrong) config:
1 (use-modules
2 (srfi srfi-1)
3 (guix)
4 (gnu))
5 (use-service-modules networking desktop admin mcron)
6 (use-package-modules base bootloaders ssh)
7 (operating-system
8 (host-name "guix")
9 (timezone "Europe/Moscow")
10 (locale "ru_RU.UTF-8")
11 (locale-definitions
12 '((locale-definition (source "ru_RU") (name "ru_RU.utf8"))
13 (locale-definition (source "en_US") (name "en_US.utf8"))))
14 (bootloader (bootloader-configuration
....................................................................
24 (initrd-modules (cons* "sata_nv" ;; Nvidia nForce
25 "pata_acpi" %base-initrd-modules))
26 (file-systems (cons*
....................................................................
47 %base-file-systems))
48 (swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))
49 (users (cons (user-account
50 (name "jone")
51 (comment "Jone")
52 (group "users")
53 (supplementary-groups '("wheel" "netdev" "audio" "video"))
54 (home-directory "/home/jone"))
55 %base-user-accounts))
56 (sudoers-file (local-file (config-file "/etc/sudoers")))
57 (packages
58 (let ((trash (specifications->packages
59 "zile" "wireless-tools")))
....................................................................
67 %base-packages))))
68 (services (cons*
69 (extra-special-file "/usr/bin/env"
70 (file-append coreutils "/bin/env"))
71 (extra-special-file "/bin/sh"
72 (file-append bash "/bin/bash"))
73 (xfce-desktop-service)
74 (service mcron-service-type)
75 (service rottlog-service-type)
76 %desktop-services))
77 )
Next I run 'guix system reconfigure new.scm':
new.scm:49:9: config-file: unbound variable
hint: Did you forget a `use-modules' form?
Ok, for test comment section "(users (cons .." and line "(sudoers-file ..",
but next again:
new.scm:26:16: specifications->packages: unbound variable
hint: Did you forget a `use-modules' form?
Questions:
1. How to debug config.scm, line by line? Is that possible?
2. Where can I find the full list of modules for "use-modules"?
3. And how to fix this config?
next reply other threads:[~2018-04-23 16:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-23 19:22 Jone [this message]
2018-04-23 18:30 ` Guix does not understand config.scm Thomas Sigurdsen
2018-04-23 18:40 ` Leo Famulari
2018-04-23 19:10 ` Alex Kost
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
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=8736zlu3r0.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me \
--to=yeger9@gmail.com \
--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).