From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fredrik Salomonsson Subject: Issues with my configuration Date: Sun, 2 Jul 2017 18:35:24 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a11c10c04220c5c05535fc90c" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRqHG-0007MD-1X for help-guix@gnu.org; Sun, 02 Jul 2017 21:35:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRqHE-0005Rj-8T for help-guix@gnu.org; Sun, 02 Jul 2017 21:35:50 -0400 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:35119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRqHD-0005OZ-ST for help-guix@gnu.org; Sun, 02 Jul 2017 21:35:48 -0400 Received: by mail-qt0-x229.google.com with SMTP id b40so24627329qtb.2 for ; Sun, 02 Jul 2017 18:35:45 -0700 (PDT) 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 --001a11c10c04220c5c05535fc90c Content-Type: multipart/alternative; boundary="001a11c10c04220c5805535fc90a" --001a11c10c04220c5805535fc90a Content-Type: text/plain; charset="UTF-8" Hello Guix! I've been eyeing GuixSD for awhile now. I've been tempted on installing on my laptop (lenovo x220) but didn't want to mess something up. Then beginning of this summer I bought an used x220 since I also wanted to try out coreboot and again didn't want to mess with my main laptop, i.e. bricking it.Got that running and I now had an extra laptop which I could do whatever I want with. Which is a perfect opportunity try out GuixSD! Noticed pretty quickly that having coreboot compiled without VGA support wasn't the best idea. Without that the Grub menu didn't show at the beginning which made it impossible to roll back when I borked the configuration. Instead I needed to reinstall guixsd to get to a working state. So I recompiled coreboot with VGA support and I could now select what generation to boot. After that I've been trying to set up GuixSD to mimic what I have on my Arch install. I gotten to a working state but I hit some road blocks that I can't figure out. 1) Mounting a nfs disk. I tried adding the nfs mount to file-systems. > (file-system > (device "fafner:/srv/nfs4/Valhalla") > (title 'device) > (mount-point "/media/Valhalla") > (type "nfs4") > (check? #f)) It works after I reconfigure guix > sudo guix system reconfigure /etc/config.scm But when I reboot, guixsd will not start it just hangs in the boot process. Looks like a lot of services are failing. 2) Change shell for user to zsh. I followed https://gitlab.com/rain1/guix-wiki/wikis/FAQ on how to change shell to zsh but getting this error when reconfiguring: > guix system: error: failed to load '/etc/config.scm': > ice-9/boot-9.scm:2795:6: In procedure resolve-interface: > ice-9/boot-9.scm:2795:6: no code for module (gnu packages zsh) I can install zsh using guix package -i zsh and start it manually. 3) Keyboard mapping. On my Arch install I have this > #/etc/X11/xorg.conf.d/00-keyboard.conf Section "InputClass" > Identifier "system-keyboard" > MatchIsKeyboard "on" > Option "XkbLayout" "us,se" > Option "XkbOptions" "ctrl:nocaps,grp:sclk_toggle,grp_led:scroll,:2" > EndSection Which does two things; remap caps to ctrl - reduces stress on my pinky when working in emacs. Let me toggle between Swedish and US keyboard layout with scroll lock, US is by far easier to code and navigate the terminal with than Swedish. The question is how do I translate this to GuixSD? Closest I could find in the manual was about the X window, but didn't find anything that directly matches what I want. And my search in the mail archive turned up empty. 4) /bin/env In the manual, under Base Services it describes how to add env to /bin. I tried adding that snippet to my services but I don't see env in /bin after I reconfigure. I've also noticed some odd issues with my keyboards that are running the qmk firmware . I've setup that my space have a dual action, it's register as space when pressing and ctrl when holding the key. But when using them in GuixSD it results in a 1s delay every time I press space. Which gives a very sluggish impression when typing in the terminal. It works fine if I disable that feature. I have not experienced that issue in any other distro. I've attached my full config.scm. Thanks -- s/Fred[re]+i[ck]+/Fredrik/g --001a11c10c04220c5805535fc90a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Guix!

I've been eyeing GuixSD= for awhile now. I've been tempted on installing on my laptop (lenovo x= 220) but didn't want to mess something up. Then beginning of this summe= r I bought an used x220 since I also wanted to try out coreboot and again d= idn't want to mess with my main laptop, i.e. bricking it.Got that runni= ng and I now had an extra laptop which I could do whatever I want with. Whi= ch is a perfect opportunity try out GuixSD!

Notice= d pretty quickly that having coreboot compiled without VGA support wasn'= ;t the best idea. Without that the Grub menu didn't show at the beginni= ng which made it impossible to roll back when I borked the configuration. I= nstead I needed to reinstall guixsd to get to a working state. So I recompi= led coreboot with VGA support and I could now select what generation to boo= t.

After that I've been trying to set up GuixS= D to mimic what I have on my Arch install. I gotten to a working state but = I hit some road blocks that I can't figure out.=C2=A0

1) =C2=A0Mounting a nfs disk.=C2=A0
I tried adding the nf= s mount to file-systems.
(file-system
=C2=A0 =C2=A0(device "fafner:/srv/nfs4/Valh= alla")
=C2=A0 =C2=A0(title 'device)
=C2=A0 =C2=A0(mount-poin= t "/media/Valhalla")
=C2=A0 =C2=A0(type "nfs4")
= =C2=A0 =C2=A0(check? #f))
It works after I reconfigu= re guix
sudo guix sy= stem reconfigure /etc/config.scm
But when I reboot, guixsd= will not start it just hangs in the boot process. Looks like a lot of serv= ices are failing.

2) Change shell for user to zsh.= =C2=A0
I followed=C2=A0https://gitlab.com/rain1/guix-wiki/wikis/FAQ=C2=A0on how= to change shell to zsh but getting this error when reconfiguring:
guix system: error: fai= led to load '/etc/config.scm':
ice-9/boot-9.scm:2795:6: In proce= dure resolve-interface:
ice-9/boot-9.scm:2795:6: no code for module (gnu= packages zsh)
I can install zsh using guix package -i zsh= and start it manually.

3) Keyboard mapping.=
On my Arch install I have this=C2=A0
#/etc/X11/xorg.conf.d/00-keyboard.conf
Section "In= putClass"
Identifier "= system-keyboard"
MatchIsKey= board "on"
Option &quo= t;XkbLayout" "us,se"
Option "XkbOptions" "ctrl:nocaps,grp:sclk_toggle,grp_led= :scroll,:2"
EndSection
Which does two things= ; remap caps to ctrl - reduces stress on my pinky when working in emacs.
Let me toggle between Swedish and US keyboard layout with scroll lo= ck, US is by far easier to code and navigate the terminal with than Swedish= .=C2=A0
The question is how do I translate this to GuixSD? Closes= t I could find in the manual was about the X window, but didn't find an= ything that directly matches what I want. And my search in the mail archive= turned up empty.

4) /bin/env=C2=A0
In t= he manual, under Base Services=C2=A0it describes how to add env to /b= in. I tried adding that snippet to my services but I don't see env in /= bin after I reconfigure.

I've also noticed som= e odd issues with my keyboards that are running the qmk firmware. I've setup that my space hav= e a dual action, it's register as space when pressing and ctrl when hol= ding the key. But when using them in GuixSD it results in a 1s delay every = time I press space. Which gives a very sluggish impression when typing in t= he terminal. It works fine if I disable that feature. I have not experience= d that issue in any other distro.

I've attache= d my full config.scm.

Thanks

<= div>



--
s/Fred[re]+i[= ck]+/Fredrik/g
--001a11c10c04220c5805535fc90a-- --001a11c10c04220c5c05535fc90c Content-Type: text/x-scheme; charset="US-ASCII"; name="config.scm" Content-Disposition: attachment; filename="config.scm" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j4ndstbo0 OzsgVGhpcyBpcyBhbiBvcGVyYXRpbmcgc3lzdGVtIGNvbmZpZ3VyYXRpb24gdGVtcGxhdGUKOzsg Zm9yIGEgImRlc2t0b3AiIHNldHVwIHdpdGhvdXQgZnVsbC1ibG93biBkZXNrdG9wCjs7IGVudmly b25tZW50cy4KCih1c2UtbW9kdWxlcyAoZ251KSAoZ251IHBhY2thZ2VzKSAoZ251IHN5c3RlbSBu c3MpIChnbnUgc3lzdGVtIGxvY2FsZSkgKGdudSBzZXJ2aWNlcyBuZnMpKQoodXNlLXNlcnZpY2Ut bW9kdWxlcyBkZXNrdG9wIG5ldHdvcmtpbmcgc3NoKQoodXNlLXBhY2thZ2UtbW9kdWxlcyB3bSBj ZXJ0cyBzdWNrbGVzcykKOzsodXNlLXBhY2thZ2UtbW9kdWxlcyB6c2gpCgooZGVmaW5lIHBsYXR0 Zm90IAogICh1c2VyLWFjY291bnQKICAgKG5hbWUgInBsYXR0Zm90IikKICAgKGdyb3VwICJ1c2Vy cy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