all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Issues with my configuration
@ 2017-07-03  1:35 Fredrik Salomonsson
  2017-07-04  9:30 ` Ricardo Wurmus
  0 siblings, 1 reply; 9+ messages in thread
From: Fredrik Salomonsson @ 2017-07-03  1:35 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 3378 bytes --]

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
<https://www.gnu.org/software/guix/manual/guix.html#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 <https://github.com/qmk/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

[-- Attachment #1.2: Type: text/html, Size: 5022 bytes --]

[-- Attachment #2: config.scm --]
[-- Type: text/x-scheme, Size: 2770 bytes --]

;; This is an operating system configuration template
;; for a "desktop" setup without full-blown desktop
;; environments.

(use-modules (gnu) (gnu packages) (gnu system nss) (gnu system locale) (gnu services nfs))
(use-service-modules desktop networking ssh)
(use-package-modules wm certs suckless)
;;(use-package-modules zsh)

(define plattfot 
  (user-account
   (name "plattfot")
   (group "users")
   ;; Define a G-Expr to find the path of the zsh binary:
   ;; https://gitlab.com/rain1/guix-wiki/wikis/FAQ#how-do-i-make-my-login-shell-zsh

   ;; Error
   ;; 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)

   ;; (shell #~(string-append #$zsh "/bin/zsh"))
   (supplementary-groups '("wheel" "netdev" "audio" "video"))
   (home-directory "/home/plattfot")))

(operating-system
 (host-name "loke")
 (timezone "Canada/Pacific")
 (locale "en_US.utf8")
 (locale-definitions 
  (list 
   (locale-definition (name "en_US.utf8") (source "en_US") (charset "UTF-8"))
   (locale-definition (name "sv_SE.utf8") (source "sv_SE") (charset "UTF-8"))))
 ;; Assuming /dev/sda is the target hard disk, and "root"
 ;; is the label of the target root file system.
 (bootloader (grub-configuration (device "/dev/sda")))

 ;; Specify a mapped device for the encrypted root partition.
 ;; The UUID is that returned by 'cryptsetup luksUUID'.
 (mapped-devices
  (list (mapped-device
	 (source (uuid "de52fa25-e7d0-4d63-8a35-91e561964043"))
	 (target "the-root-device")
	 (type luks-device-mapping))))

 (file-systems (cons* (file-system
		       (device "root")
		       (title 'label)
		       (mount-point "/")
		       (type "ext4")
		       (dependencies mapped-devices))
		      ;; GuixSD wont start with this enabled
		      ;; (file-system
		      ;;  (device "fafner:/srv/nfs4/Valhalla")
		      ;;  (title 'device)
		      ;;  (mount-point "/media/Valhalla")
		      ;;  (type "nfs4")
		      ;;  (check? #f))
                      %base-file-systems))

 (users (cons plattfot %base-user-accounts))

 ;; Add a bunch of window managers; we can choose one at
 ;; the log-in screen with F1.
 (packages (cons* i3-wm i3status dmenu ;window managers
		  ;; zsh
		  nss-certs            ;for HTTPS access
		  %base-packages))

 ;; Use the "desktop" services, which include the X11
 ;; log-in service, networking with Wicd, and more.
 (services (cons* (service openssh-service-type
			   (openssh-configuration
			    (port-number 6060)))
		  (extra-special-file "/usr/bin/env"
				      (file-append coreutils "/bin/env"))
		  %desktop-services))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-08 22:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-03  1:35 Issues with my configuration Fredrik Salomonsson
2017-07-04  9:30 ` Ricardo Wurmus
2017-07-04 19:12   ` Issues with my configuration - zsh shell default Divan Santana
2017-07-05  6:52     ` Fredrik Salomonsson
2017-07-05  8:25       ` Divan Santana
2017-07-05  9:15         ` ng0
2017-07-06  4:58           ` Fredrik Salomonsson
2017-07-05  8:30       ` Ricardo Wurmus
2017-07-08 22:11         ` Ludovic Courtès

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.