help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xorg won't start


From: Ricardo Wurmus
Subject: Re: Xorg won't start
Date: Tue, 13 Jun 2017 22:49:55 +0200
User-agent: mu4e 0.9.18; emacs 25.2.1

address@hidden writes:

>> (define (my-slim-service)
>>         (mlet* %store-monad ((config (xorg-configuration-file
>> ;;              #:drivers '("nouveau" "vesa")
>>                 #:resolutions '((1920 1080) (1366 768) (1024 768))
>> ))
>>                              (startx (xorg-start-command
>>                 #:configuration-file config)))
>>         (slim-service #:startx startx)))
> ..
> (services (cons* (xfce-desktop-service)
>                   (my-slim-service)
>                   %desktop-services))

This probably won’t do what you want.  First, the %desktop-services
contain an implementation of the slim-service-type, so you’ll get two
services that want to start X.

Instead of defining my-slim-service (which looks more complicated than
it should), how about just modifying the service with the
slim-service-type?  Here’s a snippet to append config snippets to the
xorg configuration file:

--8<---------------cut here---------------start------------->8---
  (services (cons* (whatever-service)
                   (modify-services %desktop-services
                     (slim-service-type
                      config => (slim-configuration
                                 (inherit config)
                                 (startx (xorg-start-command
                                          #:configuration-file
                                          (xorg-configuration-file
                                           #:extra-config
                                           (list marble-mouse-settings
                                                 dvorak-evdev)))))))))
--8<---------------cut here---------------end--------------->8---

Hope this helps!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]