[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Package variation
Re: Package variation
Tue, 23 Oct 2018 13:04:05 -0500
mu4e 1.0; emacs 26.1
Efraim Flashner writes:
> On Tue, Oct 23, 2018 at 01:51:21AM -0500, Brett Gilio wrote:
>> Hi all,
>> I am trying to customize my the default gnome-package which gets
>> installed with the gnome-desktop-service.
>> My strategy here has been to define a gnome-custom package in my
>> config.scm which inherits the gnome package, and remove the dependencies
>> that I do not use (such as gedit or nautilus).
>> However, I am not successful. Below is my config.scm, does anybody have
>> any ideas?
>> ;; This is an operating system configuration template
>> ;; for a "desktop" setup with GNOME and Xfce where the
>> ;; root partition is encrypted with LUKS.
>> (use-modules (gnu) (gnu system nss) (guix packages))
>> (use-service-modules desktop)
>> (use-package-modules certs gnome)
>> (define-public gnome-custom
>> (package (inherit gnome)
>> (name "gnome-custom")
>> (inputs (alist-delete "nautilus" (package-inputs gnome)))))
>> (define %my-gnome
>> (modify-services %desktop-services
>> (gnome-desktop-service-type config =>
>> ;; Add GNOME and/or Xfce---we can choose at the log-in
>> ;; screen with F1. Use the "desktop" services, which
>> ;; include the X11 log-in service, networking with
>> ;; NetworkManager, and more.
>> (services (cons* (gnome-desktop-service)
> Here you still have the default gnome-desktop-service in the list, and
> I'd assume you'd have a 50-50 chance of getting the right one when
> logging in. I would change it to (untested!):
> (services (cons* (service gnome-desktop-service-type
> config =>
> (inherit config)
> (gnome-package gnome-custom)))
> and just remove %my-gnome from above.
What you said makes sense, and I think we are on the right track
here. This is what I have now.
(package (inherit gnome)
(inputs (alist-delete "nautilus" (package-inputs gnome)))))
(services (cons* (service gnome-desktop-service-type
However, it doesn't seem to recognize the gnome-desktop-service-type,
which I know is coming from the desktop service. Perhaps we are defining
it incorrectly? The documentation on the configuration system seems to
suggest we use the gnome-desktop-service and then place the
gnome-desktop-service, and then inherit and set the gnome-custom
package. But I could be misreading it. Regardless, I am still
Thank you for your time.
Brett M. Gilio
Free Software Foundation, Member
https://gnu.org/s/guix | https://emacs.org
Re: Package variation, Ludovic Courtès, 2018/10/24