all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Divan Santana <divan@santanas.co.za>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix@gnu.org, Fredrik Salomonsson <plattfot@gmail.com>
Subject: Re: Issues with my configuration - zsh shell default
Date: Tue, 04 Jul 2017 21:12:05 +0200	[thread overview]
Message-ID: <87o9t0uid6.fsf@santanas.co.za> (raw)
In-Reply-To: <87h8ys8s7i.fsf@elephly.net>

> 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.

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 <rekado@elephly.net> 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 process.
>> Looks like a lot of services are failing.
>
> Do you want this to be mounted on boot?  I don’t think there’s 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’t
> 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 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)
>
> There is no module “(gnu packages zsh)”.  “zsh” is now in “(gnu packages
> shells)”.
>
>> 3) Keyboard mapping.
> […]
>
>> 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.
>
> Here’s 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))
>
> […]
>
> (operating-system …
>   (services …
>     (modify-services %desktop-services
>       (slim-service-type
>        config => (slim-configuration
>                   (inherit config)
>                   (startx (xorg-start-command
>                            #:configuration-file
>                            (xorg-configuration-file
>                             #:extra-config
>                             (list dvorak-evdev))))))
>                             …)))
> --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
>> <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.
>
> Not sure about this one.  Your config looks okay to me.  I’m not using
> this myself, so I don’t know if there’s a bug in our documentation.
>
>> 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.
>
> Don’t know about this one.  Is any kernel firmware loading mechanism
> 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

  reply	other threads:[~2017-07-04 19:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03  1:35 Issues with my configuration Fredrik Salomonsson
2017-07-04  9:30 ` Ricardo Wurmus
2017-07-04 19:12   ` Divan Santana [this message]
2017-07-05  6:52     ` Issues with my configuration - zsh shell default 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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9t0uid6.fsf@santanas.co.za \
    --to=divan@santanas.co.za \
    --cc=help-guix@gnu.org \
    --cc=plattfot@gmail.com \
    --cc=rekado@elephly.net \
    /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.
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.