help-guix
[Top][All Lists]
Advanced

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

Re: New reconfigure, creating a file under /etc


From: John Soo
Subject: Re: New reconfigure, creating a file under /etc
Date: Sun, 6 Oct 2019 19:12:02 -0700

Hi there,

> (services
>    (append
>     (list (service gnome-desktop-service-type)
>   (service etc-service-type
>    (list `("os-release" ,(plain-file "os-release"
>      "PRETTY_NAME=Guix-System"))))
>   (set-xorg-configuration
>    (xorg-configuration
>     (keyboard-layout keyboard-layout))))
>     %desktop-services)))
> 
> Trying to run this reconfigure will cause an error for 'more than one etc 
> service'

You will want to use modify-services to modify the existing etc-service in 
%desktop-services. Check out the services reference in the manual:
https://guix.gnu.org/manual/en/html_node/Service-Reference.html

An example might be:

(modify-services %desktop-services
  (etc-service-type conf 
    (do-something-to conf)))

Then you can append the new ones onto the modified services. 

Hope that helps,

John




reply via email to

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