| Message ID | 20220929143633.28844-1-higashi@taiju.info |
|---|---|
| State | New |
| Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4925C27BBEA; Thu, 29 Sep 2022 17:58:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ACC4527BBE9 for <patchwork@mira.cbaines.net>; Thu, 29 Sep 2022 17:58:45 +0100 (BST) Received: from localhost ([::1]:53106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1odws0-0002ZZ-I4 for patchwork@mira.cbaines.net; Thu, 29 Sep 2022 12:58:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oduet-0005j7-Kv for guix-patches@gnu.org; Thu, 29 Sep 2022 10:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oduet-0006iH-By for guix-patches@gnu.org; Thu, 29 Sep 2022 10:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1odues-0007G3-6m for guix-patches@gnu.org; Thu, 29 Sep 2022 10:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57963] [PATCH v4 1/2] home-services: Add base. References: <20220921002721.23511-1-higashi@taiju.info> In-Reply-To: <20220921002721.23511-1-higashi@taiju.info> Resent-From: Taiju HIGASHI <higashi@taiju.info> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 29 Sep 2022 14:37:02 +0000 Resent-Message-ID: <handler.57963.B57963.166446221027866@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57963 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57963@debbugs.gnu.org Cc: ludo@gnu.org, Taiju HIGASHI <higashi@taiju.info>, liliana.prikler@gmail.com, andrew@trop.in Received: via spool by 57963-submit@debbugs.gnu.org id=B57963.166446221027866 (code B ref 57963); Thu, 29 Sep 2022 14:37:02 +0000 Received: (at 57963) by debbugs.gnu.org; 29 Sep 2022 14:36:50 +0000 Received: from localhost ([127.0.0.1]:39220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oduef-0007FO-MF for submit@debbugs.gnu.org; Thu, 29 Sep 2022 10:36:50 -0400 Received: from mail-pl1-f175.google.com ([209.85.214.175]:38763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <higashi@taiju.info>) id 1odued-0007Ez-Em for 57963@debbugs.gnu.org; Thu, 29 Sep 2022 10:36:49 -0400 Received: by mail-pl1-f175.google.com with SMTP id x1so1436063plv.5 for <57963@debbugs.gnu.org>; Thu, 29 Sep 2022 07:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taiju-info.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=XITzXonqwm/niBHUU86reo4a0pQs+lPKV0Fl71LUD84=; b=aFrfSpJV+leN1TldZ005w8iKn6tlIQINhQo3jSQ4mLU2g0adEXtR/QGH+5ZWfVTB3t Hn8NYPNVi7shu6IW/xDNhFJeg8ptRk5BMD7RRlST9dB/DCjFbZTO6XKFTk++mTDIGM+w ZULJbkkSb6Bm9qt2z/3Szj51+SaBOZqGrIqJ7isiDhFQx6FZ+jNnUHgCNX/+SCBdNGU8 9UF0xXyETJc3V6RTXwv5nIG9MLoc3G4WZMkts1PyYN4nBAeSyVlNXmRYQhelJ1UVPbJ2 +gzAALvGkmB7HevMiqYFs+TfSb9tXAeY2zdIkEazRBAnATvCFoEedH1gwn49ITWvzV29 pCWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=XITzXonqwm/niBHUU86reo4a0pQs+lPKV0Fl71LUD84=; b=ia/JYVsEn9XHj2Aab9/KofJEMUrKCP2lSH5QNUPrBpwb5usWSqreqsHv012lDNaAqQ KSst4uBBtrdNeKCWHJMh5LGYPd7h2W2eWQRhefVHbSdKtLIXdhdSAlRnqbce8nD7SAI8 8tVtmqk+qviEXNZHd1v5GfMCRuLevvUlXrKe2e0bPoqSJxxt6JL7WNkVJdUohs5UDKSI J/JTtqnwWvZ9iGv0GYEyEw2GKU0LkOTvC16KxSa9HlW6sKJ2N1GwnkbCujRow/BicQLN uabJiwrwET12hDjF5Ngzz6Whrd3Wyw5bkhVVFAOZ7cuYAsi0UOC5jid8Iwy4o4rbyk72 UUTQ== X-Gm-Message-State: ACrzQf2BxwXQDZLA/Rg9v+zLdhbAiAovutXObr9d1u4VIqQfW96iOKUz JrsMsNTPR/F0xK37CqtR5tAhVuGON+rertD5 X-Google-Smtp-Source: AMsMyM78XKtiKz85Z65DLjDsGzvQzuxcSe1mnefZ6tLlp0mox14QuM3od7F8awN13FnpalS1egAygw== X-Received: by 2002:a17:90a:d14d:b0:205:e77d:dc91 with SMTP id t13-20020a17090ad14d00b00205e77ddc91mr11924739pjw.20.1664462201384; Thu, 29 Sep 2022 07:36:41 -0700 (PDT) Received: from Taix.flets-west.jp ([240b:253:ec40:2400:b7d1:436e:2d61:e925]) by smtp.gmail.com with ESMTPSA id y63-20020a626442000000b0053b9e5d365bsm6265154pfb.216.2022.09.29.07.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 07:36:40 -0700 (PDT) From: Taiju HIGASHI <higashi@taiju.info> Date: Thu, 29 Sep 2022 23:36:32 +0900 Message-Id: <20220929143633.28844-1-higashi@taiju.info> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
| Series |
[bug#57963,v4,1/2] home-services: Add base.
|
|
Commit Message
Taiju HIGASHI
Sept. 29, 2022, 2:36 p.m. UTC
* gnu/home.scm: Move home-fontconfig-service-type from home-environment-default-essential-services to %home-base-services. * gnu/home/services/base.scm: Add base. --- gnu/home.scm | 5 ++--- gnu/home/services/base.scm | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 gnu/home/services/base.scm
Comments
Am Donnerstag, dem 29.09.2022 um 23:36 +0900 schrieb Taiju HIGASHI: > * gnu/home.scm: Move home-fontconfig-service-type from > home-environment-default-essential-services to %home-base-services. Unless there is a precedent in system, I would make all the currently "essential" services %home-base-services perhaps move their code accordingly. > * gnu/home/services/base.scm: Add base. Should be "New file." Also should probably be the first item in the ChangeLog, so that other items can mention it. Cheers
Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > Am Donnerstag, dem 29.09.2022 um 23:36 +0900 schrieb Taiju HIGASHI: >> * gnu/home.scm: Move home-fontconfig-service-type from >> home-environment-default-essential-services to %home-base-services. > Unless there is a precedent in system, I would make all the currently > "essential" services %home-base-services perhaps move their code > accordingly. I thought it was only for home-fontconfig-service. Does that mean delete "essential" services and move everything to %home-base-services? >> * gnu/home/services/base.scm: Add base. > Should be "New file." Also should probably be the first item in the > ChangeLog, so that other items can mention it. I understood that "Add base" should be "New file", but I didn't understand the second part. I apologize for my lack of understanding. Cheers,
Am Freitag, dem 30.09.2022 um 00:09 +0900 schrieb Taiju HIGASHI: > Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > > > Am Donnerstag, dem 29.09.2022 um 23:36 +0900 schrieb Taiju HIGASHI: > > > * gnu/home.scm: Move home-fontconfig-service-type from > > > home-environment-default-essential-services to %home-base- > > > services. > > Unless there is a precedent in system, I would make all the > > currently > > "essential" services %home-base-services perhaps move their code > > accordingly. > > I thought it was only for home-fontconfig-service. Does that mean > delete "essential" services and move everything to %home-base- > services? I'd double-check with Andrew, but my personal opinion is "yes". > > > * gnu/home/services/base.scm: Add base. > > Should be "New file." Also should probably be the first item in > > the > > ChangeLog, so that other items can mention it. > > I understood that "Add base" should be "New file", but I didn't > understand the second part. I apologize for my lack of > understanding. It means put the * gnu/home/services/base.scm entry before the * gnu/home.scm one, so that you can mention the former in the latter. Cheers
liliana.prikler@gmail.com writes: > Am Freitag, dem 30.09.2022 um 00:09 +0900 schrieb Taiju HIGASHI: >> Liliana Marie Prikler <liliana.prikler@gmail.com> writes: >> >> > Am Donnerstag, dem 29.09.2022 um 23:36 +0900 schrieb Taiju HIGASHI: >> > > * gnu/home.scm: Move home-fontconfig-service-type from >> > > home-environment-default-essential-services to %home-base- >> > > services. >> > Unless there is a precedent in system, I would make all the >> > currently >> > "essential" services %home-base-services perhaps move their code >> > accordingly. >> >> I thought it was only for home-fontconfig-service. Does that mean >> delete "essential" services and move everything to %home-base- >> services? > I'd double-check with Andrew, but my personal opinion is "yes". Noted. It may take some time until he can reply, but I will wait for Andrew's reply. >> > > * gnu/home/services/base.scm: Add base. >> > Should be "New file." Also should probably be the first item in >> > the >> > ChangeLog, so that other items can mention it. >> >> I understood that "Add base" should be "New file", but I didn't >> understand the second part. I apologize for my lack of >> understanding. > It means put the * gnu/home/services/base.scm entry before the * > gnu/home.scm one, so that you can mention the former in the latter. Thank you for the specific explanation, I understand. Cheers,
Hi, Taiju HIGASHI <higashi@taiju.info> skribis: > * gnu/home.scm: Move home-fontconfig-service-type from > home-environment-default-essential-services to %home-base-services. > * gnu/home/services/base.scm: Add base. In addition to what Liliana wrote, please make sure to add the new file to ‘gnu/local.mk’. > @@ -82,7 +82,6 @@ (define (home-environment-default-essential-services he) > > (service home-symlink-manager-service-type) > > - (service home-fontconfig-service-type) > (service home-xdg-base-directories-service-type) > (service home-shell-profile-service-type) Like Liliana wrote, it may be that more of these can be moved from “essential” to “base”, we can keep that for a later patch. Otherwise LGTM! Ludo’.
Ludovic Courtès <ludo@gnu.org> writes: > Hi, > > Taiju HIGASHI <higashi@taiju.info> skribis: > >> * gnu/home.scm: Move home-fontconfig-service-type from >> home-environment-default-essential-services to %home-base-services. >> * gnu/home/services/base.scm: Add base. > > In addition to what Liliana wrote, please make sure to add the new file > to ‘gnu/local.mk’. I have added it. >> @@ -82,7 +82,6 @@ (define (home-environment-default-essential-services he) >> >> (service home-symlink-manager-service-type) >> >> - (service home-fontconfig-service-type) >> (service home-xdg-base-directories-service-type) >> (service home-shell-profile-service-type) > > Like Liliana wrote, it may be that more of these can be moved from > “essential” to “base”, we can keep that for a later patch. Please let us address this in a later patch. I would like to discuss something with you. I'm aware that this patch is a breaking change. We are aware that if we do not add %base-home-services to the existing home configuration, fontconfig will change. I'm concerned about how the community will react to this. Thanks,
Am Sonntag, dem 02.10.2022 um 22:45 +0900 schrieb Taiju HIGASHI: > > Like Liliana wrote, it may be that more of these can be moved from > > “essential” to “base”, we can keep that for a later patch. > > Please let us address this in a later patch. > > I would like to discuss something with you. > I'm aware that this patch is a breaking change. We are aware that if > we do not add %base-home-services to the existing home configuration, > fontconfig will change. I'm concerned about how the community will > react to this. As long as the out-of-the-box behaviour stays the same, the community has no reason to complain. For what it's worth, you could also leave fontconfig as an essential service, but then you get another field to configure. As far as I see, essential services are also a thing on the system side, but the home and system variants have a somewhat different feel to them. The fontconfig-service is not actually essential, the profile service type arguably isn't either (it acts as yet another profile and simultaneously fails to satisfy the multi-profile use-case; more on that elsewhere), the xdg-base-directories one notably violates the XDG Base Directories specification, and so on. I'd get Andrew's approval before moving services, but I'd move them in one go rather than bit by bit. Cheers
Liliana Marie Prikler <liliana.prikler@gmail.com> writes: > Am Sonntag, dem 02.10.2022 um 22:45 +0900 schrieb Taiju HIGASHI: >> > Like Liliana wrote, it may be that more of these can be moved from >> > “essential” to “base”, we can keep that for a later patch. >> >> Please let us address this in a later patch. >> >> I would like to discuss something with you. >> I'm aware that this patch is a breaking change. We are aware that if >> we do not add %base-home-services to the existing home configuration, >> fontconfig will change. I'm concerned about how the community will >> react to this. > As long as the out-of-the-box behaviour stays the same, the community > has no reason to complain. For what it's worth, you could also leave > fontconfig as an essential service, but then you get another field to > configure. > > As far as I see, essential services are also a thing on the system > side, but the home and system variants have a somewhat different feel > to them. The fontconfig-service is not actually essential, the profile > service type arguably isn't either (it acts as yet another profile and > simultaneously fails to satisfy the multi-profile use-case; more on > that elsewhere), the xdg-base-directories one notably violates the XDG > Base Directories specification, and so on. I was relieved to hear that. > I'd get Andrew's approval before moving services, but I'd move them in > one go rather than bit by bit. Noted. I'll wait for his reply. Cheers,
On 2022-10-02 16:59, Liliana Marie Prikler wrote: > Am Sonntag, dem 02.10.2022 um 22:45 +0900 schrieb Taiju HIGASHI: >> > Like Liliana wrote, it may be that more of these can be moved from >> > “essential” to “base”, we can keep that for a later patch. >> >> Please let us address this in a later patch. >> >> I would like to discuss something with you. >> I'm aware that this patch is a breaking change. We are aware that if >> we do not add %base-home-services to the existing home configuration, >> fontconfig will change. I'm concerned about how the community will >> react to this. > As long as the out-of-the-box behaviour stays the same, the community > has no reason to complain. For what it's worth, you could also leave > fontconfig as an essential service, but then you get another field to > configure. > > As far as I see, essential services are also a thing on the system > side, but the home and system variants have a somewhat different feel > to them. Originially purpose was the same - to have services depending on home-environment record fields (fontconfig depended on symlink-path field, which was configurable back in the days), later we made ~/.guix-home hardcoded and did other changes to remove all the dependencies for essential services from home-environment. Now the purpose feels somewhat different, because it basically a good list of default services, but not actually essential. The only thing, that still depends on home-environment fields is home-profile-service-type. Globally, I'm good with the reorganization of essential services, but let's make another thread for this issue. > The fontconfig-service is not actually essential, the profile service > type arguably isn't either (it acts as yet another profile and > simultaneously fails to satisfy the multi-profile use-case; more on > that elsewhere), the xdg-base-directories one notably violates the XDG > Base Directories specification, and so on. > > I'd get Andrew's approval before moving services, but I'd move them in > one go rather than bit by bit. > > Cheers
diff --git a/gnu/home.scm b/gnu/home.scm index c95d1e0818..c79db87018 100644 --- a/gnu/home.scm +++ b/gnu/home.scm @@ -19,10 +19,10 @@ (define-module (gnu home) #:use-module (gnu home services) + #:use-module (gnu home services base) #:use-module (gnu home services symlink-manager) #:use-module (gnu home services shells) #:use-module (gnu home services xdg) - #:use-module (gnu home services fontutils) #:use-module (gnu services) #:use-module (guix records) #:use-module (guix diagnostics) @@ -66,7 +66,7 @@ (define-record-type* <home-environment> home-environment this-home-environment))) (services home-environment-user-services - (default '())) + (default %home-base-services)) (location home-environment-location ; <location> (default (and=> (current-source-location) @@ -82,7 +82,6 @@ (define (home-environment-default-essential-services he) (service home-symlink-manager-service-type) - (service home-fontconfig-service-type) (service home-xdg-base-directories-service-type) (service home-shell-profile-service-type) diff --git a/gnu/home/services/base.scm b/gnu/home/services/base.scm new file mode 100644 index 0000000000..fbf92ba213 --- /dev/null +++ b/gnu/home/services/base.scm @@ -0,0 +1,35 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info> +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. + +(define-module (gnu home services base) + #:use-module (gnu home services) + #:use-module (gnu home services fontutils) + #:export (%home-base-services)) + +;;; Commentary: +;; +;; Base home services---i,e., services that 99% of the users will want to use. +;; +;;; Code: + + +(define %home-base-services + ;; Convenience variable holding the basic services. + (list (service home-fontconfig-service-type))) + +;;; base.scm ends here