[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New reconfigure, creating a file under /etc
From: |
Gábor Boskovits |
Subject: |
Re: New reconfigure, creating a file under /etc |
Date: |
Mon, 7 Oct 2019 08:30:32 +0200 |
John Soo <address@hidden> ezt írta (időpont: 2019. okt. 7., Hét 4:12):
> 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.
>
If you just want to add a file, you could extend it using
extra-special-file.
>
>
> Hope that helps,
>
> John
>
>
>