all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Touchpad tap config in slim-service-type configuration
@ 2019-03-27 15:17 znavko
  2019-03-27 16:31 ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: znavko @ 2019-03-27 15:17 UTC (permalink / raw)
  To: Help Guix

[-- Attachment #1: Type: text/plain, Size: 3918 bytes --]

Hello! I have updated guix and tried to run `guix system reconfigure ..` (just for update, config is the same), but something has been changed in guix repository (I think so).

The error is this:

# guix system reconfigure /etc/config.scm
/etc/config.scm:65:46: error: extraneous field initializers (slim-configuration-startx)

My config is this:

  (services (cons*  
                    ;;(service postgresql-service-type)
                    (xfce-desktop-service-type)
                    (modify-services      
                      ;;(remove (lambda (service)
                      ;;  (eq? (service-kind service)
                      ;;    wpa-supplicant-service-type))
                      ;;  (remove (lambda (service)
                      ;;    (eq? (service-kind service)
                      ;;      static-networking-service-type))
                          (remove (lambda (service)
                            (eq? (service-kind service)
                              ntp-service-type))
                            (remove (lambda (service)
                              (eq? (service-kind service)
                                avahi-service-type))
                              (modify-services %desktop-services

                                (slim-service-type config =>
                                              (slim-configuration
                                               (inherit config)
                                               (startx
                                                (xorg-start-command
                                                 #:configuration-file
                                                 (xorg-configuration-file
                                                  #:extra-config
                                                  '(
"Section \"InputClass\"
        Identifier \"touchpad\"
        Driver \"libinput\"
        MatchIsTouchpad \"on\"
        Option \"Tapping\" \"on\"
EndSection"
                                 ))))))
  )  ;end of modify-services 2nd


                            )  ;end of remove avahi
                          )  ;end of remove2 ntp
                        ;;)  ;end of remove3 networking
                      ;)  ;end of remove4 wpa-supplicant
                      (elogind-service-type
                        c => (elogind-configuration (handle-lid-switch 'ignore)))
                    );;end of modify-services 1st desktop-services
  ));;end of services

I have studied the guile file https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n550 <https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n550>  but I have no sense how to rewrite my config, cause I really have not studied Guile yet.

Please, rewrite it for me. Where to include my touchpad config now?



[-- Attachment #2: Type: text/html, Size: 8986 bytes --]

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

* Re: Touchpad tap config in slim-service-type configuration
  2019-03-27 15:17 Touchpad tap config in slim-service-type configuration znavko
@ 2019-03-27 16:31 ` Ricardo Wurmus
  2019-03-27 16:47   ` znavko
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2019-03-27 16:31 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix


znavko@tutanota.com writes:

> Hello! I have updated guix and tried to run `guix system reconfigure
> ..` (just for update, config is the same), but something has been
> changed in guix repository (I think so).
>
> The error is this:
>
> # guix system reconfigure /etc/config.scm
> /etc/config.scm:65:46: error: extraneous field initializers
> (slim-configuration-startx)
[…]

There no longer is a “startx” field in the “slim-configuration”.

> I have studied the guile file
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n550

You shouldn’t need to look at Guile code.  Have you looked at the manual?

--
Ricardo

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

* Re: Touchpad tap config in slim-service-type configuration
  2019-03-27 16:31 ` Ricardo Wurmus
@ 2019-03-27 16:47   ` znavko
  2019-03-27 18:12     ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: znavko @ 2019-03-27 16:47 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 1283 bytes --]

Now yes, but I think it is old, cause startx rests there in slim config: https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration <https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration>  .

Sorry, I have not found solution by keyword 'touchpad' in that guix manual, but I have no time to read entire text to get an idea how to try to solve this. 


Mar 27, 2019, 4:31 PM by rekado@elephly.net:

>
> znavko@tutanota.com <mailto:znavko@tutanota.com>>  writes:
>
>> Hello! I have updated guix and tried to run `guix system reconfigure
>> ..` (just for update, config is the same), but something has been
>> changed in guix repository (I think so).
>>
>> The error is this:
>>
>> # guix system reconfigure /etc/config.scm
>> /etc/config.scm:65:46: error: extraneous field initializers
>> (slim-configuration-startx)
>>
> […]
>
> There no longer is a “startx” field in the “slim-configuration”.
>
>> I have studied the guile file
>> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n550 <https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n550>
>>
>
> You shouldn’t need to look at Guile code.  Have you looked at the manual?
>
> --
> Ricardo
>


[-- Attachment #2: Type: text/html, Size: 2879 bytes --]

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

* Re: Touchpad tap config in slim-service-type configuration
  2019-03-27 16:47   ` znavko
@ 2019-03-27 18:12     ` Ricardo Wurmus
  2019-03-28 17:24       ` znavko
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2019-03-27 18:12 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix


znavko@tutanota.com writes:

> Now yes, but I think it is old, cause startx rests there in slim
> config:
> https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration

A copy of the manual that matches the version of Guix you have installed
comes with Guix itself.  I suggest using that up-to-date manual instead
of the manual on the web which matches the latest release.

You can access the manual with “info guix” on the command line (or with
the equivalent in Emacs, which has a much better info reader).  Hit “i”
for the index and type “slim-configuration” because that’s what the
error says has an error.

There you’ll find that “slim-configuration” no longer has a “startx”
field, but instead offers an “xorg-configuration” field.  So we hit “i”
again and type “xorg-configuration” to get more information about the
valid values…

The only reason why you passed a value for “startx” originally was just
to pass an Xorg configuration snippet via “#:extra-config”.  According
to the manual for “xorg-configuration” you can now do this directly via
the “extra-config” field of the “xorg-configuration” record.

So you’ll probably end up with something like this:

(service slim-service-type
         (slim-configuration
           (xorg-configuration
             (xorg-configuration
               (extra-config "…")))))


--
Ricardo

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

* Re: Touchpad tap config in slim-service-type configuration
  2019-03-27 18:12     ` Ricardo Wurmus
@ 2019-03-28 17:24       ` znavko
  2019-03-28 17:34         ` znavko
  0 siblings, 1 reply; 6+ messages in thread
From: znavko @ 2019-03-28 17:24 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 6378 bytes --]

This config not works. It causes error on building xserver:
'ERROR: In procedure scm-error:
In procedure for-each: Wrong type argument: "Section \"InputClass\"\n        Identifier \"touchpad\"\n        Driver \"libinput\"\n        MatchIsTouchpad \"on\"\n        Option \"Tapping\" \"on\"\nEndSection"'

====
  (services (cons*  
                    ;;(service postgresql-service-type)
                    (service xfce-desktop-service-type)
                    (modify-services      
                      ;;(remove (lambda (service)
                      ;;  (eq? (service-kind service)
                      ;;    wpa-supplicant-service-type))
                      ;;  (remove (lambda (service)
                      ;;    (eq? (service-kind service)
                      ;;      static-networking-service-type))
                          (remove (lambda (service)
                            (eq? (service-kind service)
                              ntp-service-type))
                            (remove (lambda (service)
                              (eq? (service-kind service)
                                avahi-service-type))
                              (modify-services %desktop-services

                                (slim-service-type config =>
                                              (slim-configuration
                                               (xorg-configuration
                                                 (xorg-configuration
                                                  (extra-config
                                                  
"Section \"InputClass\"
        Identifier \"touchpad\"
        Driver \"libinput\"
        MatchIsTouchpad \"on\"
        Option \"Tapping\" \"on\"
EndSection"
                                 )))))
  )  ;end of modify-services 2nd


                            )  ;end of remove avahi
                          )  ;end of remove2 ntp
                        ;;)  ;end of remove3 networking
                      ;)  ;end of remove4 wpa-supplicant
                      (elogind-service-type
                        c => (elogind-configuration (handle-lid-switch 'ignore)))
                    );;end of modify-services 1st desktop-services
  ));;end of services
====


I've found with `info guix` this:

 Let’s say you want your system to use the Turkish keyboard layout
throughout your system—bootloader, console, and Xorg.  Here’s what your
system configuration would look like:

     ;; Using the Turkish layout for the bootloader, the console,
     ;; and for Xorg.

     (operating-system
       ;; ...
       (keyboard-layout (keyboard-layout "tr"))  ;for the console
       (bootloader (bootloader-configuration
                     (bootloader grub-efi-bootloader)
                     (target "/boot/efi")
                     (keyboard-layout keyboard-layout))) ;for GRUB
       (services (modify-services %desktop-services
                   (slim-service-type config =>
                     (slim-configuration
                       (inherit config)
                       (xorg-configuration
                         (xorg-configuration             ;for Xorg
                           (keyboard-layout keyboard-layout))))))))

   In the example above, for GRUB and for Xorg, we just refer to the
‘keyboard-layout’ field defined above, but we could just as well refer
to a different layout.


But word 'touchpad' absents in `ingo guix`. I do not know what to do.



Mar 27, 2019, 6:12 PM by rekado@elephly.net:

>
> znavko@tutanota.com <mailto:znavko@tutanota.com>>  writes:
>
>> Now yes, but I think it is old, cause startx rests there in slim
>> config:
>> https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration <https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration>
>>
>
> A copy of the manual that matches the version of Guix you have installed
> comes with Guix itself.  I suggest using that up-to-date manual instead
> of the manual on the web which matches the latest release.
>
> You can access the manual with “info guix” on the command line (or with
> the equivalent in Emacs, which has a much better info reader).  Hit “i”
> for the index and type “slim-configuration” because that’s what the
> error says has an error.
>
> There you’ll find that “slim-configuration” no longer has a “startx”
> field, but instead offers an “xorg-configuration” field.  So we hit “i”
> again and type “xorg-configuration” to get more information about the
> valid values…
>
> The only reason why you passed a value for “startx” originally was just
> to pass an Xorg configuration snippet via “#:extra-config”.  According
> to the manual for “xorg-configuration” you can now do this directly via
> the “extra-config” field of the “xorg-configuration” record.
>
> So you’ll probably end up with something like this:
>
> (service slim-service-type
>  (slim-configuration
>  (xorg-configuration
>  (xorg-configuration
>  (extra-config "…")))))
>
>
> --
> Ricardo
>


[-- Attachment #2: Type: text/html, Size: 13876 bytes --]

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

* Re: Touchpad tap config in slim-service-type configuration
  2019-03-28 17:24       ` znavko
@ 2019-03-28 17:34         ` znavko
  0 siblings, 0 replies; 6+ messages in thread
From: znavko @ 2019-03-28 17:34 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 8059 bytes --]

Sorry, it works this way


                                (slim-service-type config =>
                                              (slim-configuration
                                               (xorg-configuration
                                                 (xorg-configuration
                                                  (extra-config
                                                  
'("Section \"InputClass\"
        Identifier \"touchpad\"
        Driver \"libinput\"
        MatchIsTouchpad \"on\"
        Option \"Tapping\" \"on\"
EndSection")
                                 )))))


I have found how to use 'extra-config` function in `info guix` using keyword 'extra-config' and reading this:

     ‘extra-config’ (default: ‘'()’)
          This is a list of strings or objects appended to the
          configuration file.  It is used to pass extra text to be added
          verbatim to the configuration file.


Thank you! Touchpad works, and guix reconfigures system normally.


Mar 28, 2019, 5:24 PM by znavko@tutanota.com:

> This config not works. It causes error on building xserver:
> 'ERROR: In procedure scm-error:
> In procedure for-each: Wrong type argument: "Section \"InputClass\"\n        Identifier \"touchpad\"\n        Driver \"libinput\"\n        MatchIsTouchpad \"on\"\n        Option \"Tapping\" \"on\"\nEndSection"'
>
> ====
>   (services (cons*  
>                     ;;(service postgresql-service-type)
>                     (service xfce-desktop-service-type)
>                     (modify-services      
>                       ;;(remove (lambda (service)
>                       ;;  (eq? (service-kind service)
>                       ;;    wpa-supplicant-service-type))
>                       ;;  (remove (lambda (service)
>                       ;;    (eq? (service-kind service)
>                       ;;      static-networking-service-type))
>                           (remove (lambda (service)
>                             (eq? (service-kind service)
>                               ntp-service-type))
>                             (remove (lambda (service)
>                               (eq? (service-kind service)
>                                 avahi-service-type))
>                               (modify-services %desktop-services
>
>                                 (slim-service-type config =>
>                                               (slim-configuration
>                                                (xorg-configuration
>                                                  (xorg-configuration
>                                                   (extra-config
>                                                   
> "Section \"InputClass\"
>         Identifier \"touchpad\"
>         Driver \"libinput\"
>         MatchIsTouchpad \"on\"
>         Option \"Tapping\" \"on\"
> EndSection"
>                                  )))))
>   )  ;end of modify-services 2nd
>
>
>                             )  ;end of remove avahi
>                           )  ;end of remove2 ntp
>                         ;;)  ;end of remove3 networking
>                       ;)  ;end of remove4 wpa-supplicant
>                       (elogind-service-type
>                         c => (elogind-configuration (handle-lid-switch 'ignore)))
>                     );;end of modify-services 1st desktop-services
>   ));;end of services
> ====
>
>
> I've found with `info guix` this:
>
>  Let’s say you want your system to use the Turkish keyboard layout
> throughout your system—bootloader, console, and Xorg.  Here’s what your
> system configuration would look like:
>
>      ;; Using the Turkish layout for the bootloader, the console,
>      ;; and for Xorg.
>
>      (operating-system
>        ;; ...
>        (keyboard-layout (keyboard-layout "tr"))  ;for the console
>        (bootloader (bootloader-configuration
>                      (bootloader grub-efi-bootloader)
>                      (target "/boot/efi")
>                      (keyboard-layout keyboard-layout))) ;for GRUB
>        (services (modify-services %desktop-services
>                    (slim-service-type config =>
>                      (slim-configuration
>                        (inherit config)
>                        (xorg-configuration
>                          (xorg-configuration             ;for Xorg
>                            (keyboard-layout keyboard-layout))))))))
>
>    In the example above, for GRUB and for Xorg, we just refer to the
> ‘keyboard-layout’ field defined above, but we could just as well refer
> to a different layout.
>
> But word 'touchpad' absents in `ingo guix`. I do not know what to do.
>
>
>
> Mar 27, 2019, 6:12 PM by > rekado@elephly.net <mailto:rekado@elephly.net>> :
>
>>
>> znavko@tutanota.com <mailto:znavko@tutanota.com>>>  writes:
>>
>>> Now yes, but I think it is old, cause startx rests there in slim
>>> config:
>>> https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration <https://www.gnu.org/software/guix/manual/en/guix.html#index-slim_002dconfiguration>
>>>
>>
>> A copy of the manual that matches the version of Guix you have installed
>> comes with Guix itself.  I suggest using that up-to-date manual instead
>> of the manual on the web which matches the latest release.
>>
>> You can access the manual with “info guix” on the command line (or with
>> the equivalent in Emacs, which has a much better info reader).  Hit “i”
>> for the index and type “slim-configuration” because that’s what the
>> error says has an error.
>>
>> There you’ll find that “slim-configuration” no longer has a “startx”
>> field, but instead offers an “xorg-configuration” field.  So we hit “i”
>> again and type “xorg-configuration” to get more information about the
>> valid values…
>>
>> The only reason why you passed a value for “startx” originally was just
>> to pass an Xorg configuration snippet via “#:extra-config”.  According
>> to the manual for “xorg-configuration” you can now do this directly via
>> the “extra-config” field of the “xorg-configuration” record.
>>
>> So you’ll probably end up with something like this:
>>
>> (service slim-service-type
>> (slim-configuration
>> (xorg-configuration
>> (xorg-configuration
>> (extra-config "…")))))
>>
>>
>> --
>> Ricardo
>>
>
>


[-- Attachment #2: Type: text/html, Size: 19635 bytes --]

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

end of thread, other threads:[~2019-03-28 17:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-27 15:17 Touchpad tap config in slim-service-type configuration znavko
2019-03-27 16:31 ` Ricardo Wurmus
2019-03-27 16:47   ` znavko
2019-03-27 18:12     ` Ricardo Wurmus
2019-03-28 17:24       ` znavko
2019-03-28 17:34         ` znavko

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.