From mboxrd@z Thu Jan 1 00:00:00 1970 From: Divan Santana Subject: Re: Issues with my configuration - zsh shell default Date: Tue, 04 Jul 2017 21:12:05 +0200 Message-ID: <87o9t0uid6.fsf@santanas.co.za> References: <87h8ys8s7i.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSTkT-00059O-0O for help-guix@gnu.org; Tue, 04 Jul 2017 15:44:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSTkO-0001fY-3u for help-guix@gnu.org; Tue, 04 Jul 2017 15:44:37 -0400 Received: from outmail149078.authsmtp.net ([62.13.149.78]:33067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dSTkN-0001et-Mu for help-guix@gnu.org; Tue, 04 Jul 2017 15:44:32 -0400 In-reply-to: <87h8ys8s7i.fsf@elephly.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: Ricardo Wurmus Cc: help-guix@gnu.org, Fredrik Salomonsson > 2) Change shell for user to zsh. > I followed https://gitlab.com/rain1/guix-wiki/wikis/FAQ on how to chang= e > 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. This works for me: (use-package-modules shells) (users (cons (user-account (name "admin") (comment "") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (shell #~(string-append #$zsh "/bin/zsh")) (home-directory "/home/admin")) %base-user-accounts)) Though I'm not yet sure how to change the root accounts shell to zsh. Anyone know that? Ricardo Wurmus writes: > Hi Fredrik, > >> 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 pro= cess. >> Looks like a lot of services are failing. > > Do you want this to be mounted on boot? I don=E2=80=99t think there=E2= =80=99s a way to > express that a mount should happen after the network has come up (yet). > > You can only tell Guix not to try to mount the disk on boot. Use > auto-mounting to mount the disk on demand at a later point. (We don=E2= =80=99t > have a service for autofs yet.) > > Your contributions in this area would be welcome! > >> 2) Change shell for user to zsh. >> I followed https://gitlab.com/rain1/guix-wiki/wikis/FAQ on how to chan= ge >> 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) > > There is no module =E2=80=9C(gnu packages zsh)=E2=80=9D. =E2=80=9Czsh=E2= =80=9D is now in =E2=80=9C(gnu packages > shells)=E2=80=9D. > >> 3) Keyboard mapping. > [=E2=80=A6] > >> The question is how do I translate this to GuixSD? Closest I could fin= d in >> the manual was about the X window, but didn't find anything that direc= tly >> matches what I want. > > Here=E2=80=99s what I do in my config: > > --8<---------------cut here---------------start------------->8--- > (define dvorak-evdev > (call-with-input-file "/etc/config.d/evdev.conf" read-string)) > > [=E2=80=A6] > > (operating-system =E2=80=A6 > (services =E2=80=A6 > (modify-services %desktop-services > (slim-service-type > config =3D> (slim-configuration > (inherit config) > (startx (xorg-start-command > #:configuration-file > (xorg-configuration-file > #:extra-config > (list dvorak-evdev)))))) > =E2=80=A6))) > --8<---------------cut here---------------end--------------->8--- > > You can use something like that to add to the xorg configuration file. > Just put your snippet in a file and slurp it up. > >> 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. > > Not sure about this one. Your config looks okay to me. I=E2=80=99m no= t using > this myself, so I don=E2=80=99t know if there=E2=80=99s a bug in our do= cumentation. > >> I've also noticed some odd issues with my keyboards that are running t= he qmk >> firmware . I've setup that my spa= ce >> 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 dela= y >> 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 hav= e not >> experienced that issue in any other distro. > > Don=E2=80=99t know about this one. Is any kernel firmware loading mech= anism > involved or do you suspect an xorg configuration problem? -- Best regards, Divan Santana Red Hat Certified Architect RHCA | CCNA | MCSE Mobile: +27 82 787 8522 Email: divan@santanas.co.za