all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Enhancing `modify-services' to support name in addition to type
@ 2020-03-26 15:07 Brice Waegeneire
  0 siblings, 0 replies; only message in thread
From: Brice Waegeneire @ 2020-03-26 15:07 UTC (permalink / raw)
  To: guix-devel

Hello,

I was thinking of improving `modify-services' by adding the ability to
specify a service to modify based on it's name and not just it's type. 
This
would allow us to modify singleton services like the ones returned by
`simple-service'. I'm not sure if that's a good idea, that's why I 
prefer
to ask before starting to write a patch. Following is an example of how 
it
would like when modifying `set-xorg-configuration':

--8<---------------cut here---------------start------------->8---
(define t430-xorg-extra-config "
Section \"InputClass\"
   Identifier \"touchpad\"
   Driver \"synaptics\"
   Option \"HorizTwoFingerScroll\" \"on\"
EndSection")

(define t430-services
   (modify-services workstation-services
     ('set-xorg-configuration
      config => (xorg-configuration
                 (inherit config)
                 (extra-config (list t430-xorg-extra-config))))))
--8<---------------cut here---------------end--------------->8---

Brice.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-26 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 15:07 Enhancing `modify-services' to support name in addition to type Brice Waegeneire

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.