From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Gilio Subject: Re: Package variation Date: Tue, 23 Oct 2018 14:50:35 -0500 Message-ID: <87sh0wv3w4.fsf@posteo.net> References: <87pnw1p34m.fsf@posteo.net> <20181023073302.GG1102@macbook41> <87r2ggwne2.fsf@posteo.net> <20181023181319.GH1102@macbook41> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF2hW-0008Jj-U6 for guix-devel@gnu.org; Tue, 23 Oct 2018 15:50:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF2hQ-0001Bs-DB for guix-devel@gnu.org; Tue, 23 Oct 2018 15:50:48 -0400 Received: from mout02.posteo.de ([185.67.36.66]:60925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gF2hP-00019K-MQ for guix-devel@gnu.org; Tue, 23 Oct 2018 15:50:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D81792400FB for ; Tue, 23 Oct 2018 21:50:41 +0200 (CEST) In-reply-to: <20181023181319.GH1102@macbook41> 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: Efraim Flashner Cc: Guix-devel Efraim Flashner writes: > On Tue, Oct 23, 2018 at 01:04:05PM -0500, Brett Gilio wrote: >> >> 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 => >> >> (gnome-desktop-configuration >> >> (gnome-package gnome-custom))))) >> >> >> > >> >> >> >> ;; 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 => >> > (gnome-desktop-configuration >> > (inherit config) >> > (gnome-package gnome-custom))) >> > %desktop-services)) >> > >> > and just remove %my-gnome from above. >> >> Hi Efraim, >> >> What you said makes sense, and I think we are on the right track >> here. This is what I have now. >> >> (define-public gnome-custom >> (package (inherit gnome) >> (name "gnome-custom") >> (inputs (alist-delete "nautilus" (package-inputs gnome))))) >> >> ;; ....... >> >> (services (cons* (service gnome-desktop-service-type >> config => >> (gnome-desktop-configuration >> (inherit config) >> (gnome-package gnome-custom))) >> %desktop-services)) >> >> >> 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. >> >> 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 => ... I tried that and also simply removing the service definition, but it still doesn't seem to recognize it. I wonder if it is something to do with the service-modules being incorrect in the header.