unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Brett Gilio <brettg@posteo.net>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Package variation
Date: Tue, 23 Oct 2018 10:33:02 +0300	[thread overview]
Message-ID: <20181023073302.GG1102@macbook41> (raw)
In-Reply-To: <87pnw1p34m.fsf@posteo.net>

[-- Attachment #1: Type: text/plain, Size: 2213 bytes --]

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)))))
> 
<snip>
> 
>   ;; 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.
-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2018-10-23  7:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-23  6:51 Package variation Brett Gilio
2018-10-23  7:33 ` Efraim Flashner [this message]
2018-10-23 18:04   ` Brett Gilio
2018-10-23 18:13     ` Efraim Flashner
2018-10-23 19:50       ` Brett Gilio
2018-10-24  2:33     ` Chris Marusich
2018-10-24  6:01       ` Brett Gilio
2018-10-25  5:35         ` Chris Marusich
2018-10-24 13:06 ` Ludovic Courtès
2018-10-24 21:02   ` Brett Gilio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181023073302.GG1102@macbook41 \
    --to=efraim@flashner.co.il \
    --cc=brettg@posteo.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).