From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Mazurkiewicz Subject: Re: Original config from a documentation causes an error with keyboard-layout function Date: Wed, 8 May 2019 10:02:22 +0200 Message-ID: References: <07e21327-7a4f-a521-d9f3-9c10b8d857d4@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOHXK-0006DQ-Uo for help-guix@gnu.org; Wed, 08 May 2019 04:02:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOHXI-0005Ww-OR for help-guix@gnu.org; Wed, 08 May 2019 04:02:46 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:34739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOHXF-00052u-AZ for help-guix@gnu.org; Wed, 08 May 2019 04:02:43 -0400 Received: by mail-qk1-x72d.google.com with SMTP id n68so1575881qka.1 for ; Wed, 08 May 2019 01:02:35 -0700 (PDT) In-Reply-To: <07e21327-7a4f-a521-d9f3-9c10b8d857d4@riseup.net> 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: help-guix@gnu.org I processed the installation try from usb flash stick. First I formatted a target partition for the new Guixsd instance with ext4 and labeled it guixsd. Then I did that follows and put 'guix describe': root@gnu ~# ifconfig enp2s0 up && \ > dhclient enp2s0 -v [ 173.423231] RTL8211B Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=3Dr8169-200:00, irq=3DIGNORE) [ 173.524320] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready enp2s0 Link encap:Ethernet HWaddr 00:23:54:60:DA:20 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 [ 173.525924] r8169 0000:02:00.0 enp2s0: Link is Down TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 TX bytes:0 Internet Systems Consortium DHCP Client 4.4.1 Copyright 2004-2018 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/enp2s0/00:23:54:60:da:20 Sending on LPF/enp2s0/00:23:54:60:da:20 Sending on Socket/fallback DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 6 [ 175.062429] r8169 0000:02:00.0 enp2s0: Link is Up - 100Mbps/Full - flow control off [ 175.062723] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 12 DHCPOFFER of 192.168.0.6 from 192.168.0.1 DHCPREQUEST for 192.168.0.6 on enp2s0 to 255.255.255.255 port 67 DHCPACK of 192.168.0.6 from 192.168.0.1 bound to 192.168.0.6 -- renewal in 266 seconds. root@gnu ~# mount /dev/disk/by-label/guixsd /mnt && \ > mkdir /mnt/etc [ 240.335408] EXT4-fs (sda1): recovery complete [ 240.337345] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) root@gnu ~# cp /root/sda6/home/s/Dropbox/Guix/scm1/config.scm /mnt/etc/ root@gnu ~# herd start cow-store /mnt Service cow-store has been started. root@gnu ~# guix system init /mnt/etc/config.scm /mnt/ /mnt/etc/config.scm:5:0: error: extraneous field initializers (keyboard-layout) root@gnu ~# guix describe guix describe: error: failed to determine origin root@gnu ~# =C5=9Br., 8 maj 2019 o 08:46 swedebugia napisa=C5= =82(a): > On 2019-05-08 07:00, Adam Mazurkiewicz wrote: > ... > > > > > Using this file caused the error: > > /root/sda6/home/s/Dropbox/Guix/scm1/config.scm:5:0: error: extraneous > field > > initializers (keyboard-layout) > > > > So it is something wrong with the keyboard-layout function. The functio= n > is > > used a few times so we do not know which one actually causes the error. > > > > Is this the documentation mistake or I am doing something wrong? How to > use > > the function keyboard-layout properly? > > > > Could you add the output of "guix describe"? > How did you install guix? > > -- > Cheers > Swedebugia > >