From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Gilio Subject: Re: Package variation Date: Tue, 23 Oct 2018 13:04:05 -0500 Message-ID: <87r2ggwne2.fsf@posteo.net> References: <87pnw1p34m.fsf@posteo.net> <20181023073302.GG1102@macbook41> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF12b-0000Qj-VV for guix-devel@gnu.org; Tue, 23 Oct 2018 14:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF12W-0004EM-AU for guix-devel@gnu.org; Tue, 23 Oct 2018 14:04:28 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37470) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gF12S-00040t-5g for guix-devel@gnu.org; Tue, 23 Oct 2018 14:04:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 97F2D210A0 for ; Tue, 23 Oct 2018 20:04:14 +0200 (CEST) In-reply-to: <20181023073302.GG1102@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: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. -- Brett M. Gilio Free Software Foundation, Member https://gnu.org/s/guix | https://emacs.org