From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: Package variation Date: Tue, 23 Oct 2018 21:13:19 +0300 Message-ID: <20181023181319.GH1102@macbook41> References: <87pnw1p34m.fsf@posteo.net> <20181023073302.GG1102@macbook41> <87r2ggwne2.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dMyqICaxQaaUjrCL" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1BG-0004a4-Ob for guix-devel@gnu.org; Tue, 23 Oct 2018 14:13:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF1BD-00031g-7A for guix-devel@gnu.org; Tue, 23 Oct 2018 14:13:26 -0400 Received: from flashner.co.il ([178.62.234.194]:38588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF1BC-0002zm-RD for guix-devel@gnu.org; Tue, 23 Oct 2018 14:13:23 -0400 Content-Disposition: inline In-Reply-To: <87r2ggwne2.fsf@posteo.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Brett Gilio Cc: Guix-devel --dMyqICaxQaaUjrCL Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 23, 2018 at 01:04:05PM -0500, Brett Gilio wrote: >=20 > Efraim Flashner writes: >=20 > > On Tue, Oct 23, 2018 at 01:51:21AM -0500, Brett Gilio wrote: > >> Hi all, > >>=20 > >> I am trying to customize my the default gnome-package which gets > >> installed with the gnome-desktop-service. > >>=20 > >> My strategy here has been to define a gnome-custom package in my > >> config.scm which inherits the gnome package, and remove the dependenci= es > >> that I do not use (such as gedit or nautilus). > >>=20 > >> However, I am not successful. Below is my config.scm, does anybody have > >> any ideas? > >>=20 > >> -- > >>=20 > >> ;; This is an operating system configuration template > >> ;; for a "desktop" setup with GNOME and Xfce where the > >> ;; root partition is encrypted with LUKS. > >>=20 > >> (use-modules (gnu) (gnu system nss) (guix packages)) > >> (use-service-modules desktop) > >> (use-package-modules certs gnome) > >>=20 > >> (define-public gnome-custom > >> (package (inherit gnome) > >> (name "gnome-custom") > >> (inputs (alist-delete "nautilus" (package-inputs gnome))))) > >>=20 > >> (define %my-gnome > >> (modify-services %desktop-services > >> (gnome-desktop-service-type config =3D> > >> (gnome-desktop-configuration > >> (gnome-package gnome-custom))))) > >>=20 > > > >>=20 > >> ;; 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) > >> %my-gnome)) > > > > 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 =3D> > > (gnome-desktop-configuration > > (inherit config) > > (gnome-package gnome-custom))) > > %desktop-services)) > > > > and just remove %my-gnome from above. >=20 > Hi Efraim, >=20 > What you said makes sense, and I think we are on the right track > here. This is what I have now. >=20 > (define-public gnome-custom > (package (inherit gnome) > (name "gnome-custom") > (inputs (alist-delete "nautilus" (package-inputs gnome))))) >=20 > ;; ....... >=20 > (services (cons* (service gnome-desktop-service-type > config =3D> > (gnome-desktop-configuration > (inherit config) > (gnome-package gnome-custom))) > %desktop-services)) >=20 >=20 > 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 > unsuccessful here. >=20 > Thank you for your time. according to gnu/services/desktop.scm gnome-desktop-service-type should work, but since it doesn't seem to like it then go ahead and try (service gnome-desktop-service config =3D> ... --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --dMyqICaxQaaUjrCL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlvPZLoACgkQQarn3Mo9 g1EF+g//W8/QN4n4Zvi9nQuREvUaMDKD18ismpu3CU/3TBKQUBUCf98+gv3gOqHq HVAvPAUeja6+CrTlDXSd0tsDVFGqijcJ08wuiyj5ypdCiAayY1bT47Xuco4sq3XO btEjXCvYMZvW72LTb/IkD0VZ2LQzWosKSsfZtKg9yljpaMzRez6KXQNjB1i5+2RR 429UAj1H+TdG8NQ+J6O+pKENNbdWXywyo1EI4gxmd5kQTf8GfPXL071aUH9iHZG7 6HDCN9Yn8qraSBMCSXBuUFrS1LJBXZ/uwIqR/QzOO/n2d2W3PgDDfTE7IBjYuGh5 VQvyPpFWwqXRoDsK9PHr3ApS46Ywo9RP6En06oCrVQRdaBiw5Ubp7gXlM+nqyqA1 rJpYpQ6ysD7SM7S1UuGzaLL3Y+LcTcB/TV3NW1lRl1UNwt1KkgieeRufFwugI8fB HUm4mbv3zQff0WCfVQL1WcYcWtqKXO3XRu9Row02jm84RncRYTN366GjuG/K1C1m W4ABExgKHPRMfCULnK7JsQU8h3UbixxseXHXL+W9cFzoaoDBNX7Ai7srFaHhhnSM 9I/Cjkiy3k4jEwJxJX2UkCLcF/R1LIVCKwX3JzwKGO1jXfUf9O31MhwY6tl1N8LV hRjSZcOM79jjr4w9LgoxlCCM/XTjFN+lMAYnygRDd5URI89jHaw= =Q2c8 -----END PGP SIGNATURE----- --dMyqICaxQaaUjrCL--