From patchwork Tue Jan 29 15:28:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 914 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0397B16AFB; Tue, 29 Jan 2019 15:32:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id B037D16AF9 for ; Tue, 29 Jan 2019 15:32:01 +0000 (GMT) Received: from localhost ([127.0.0.1]:51137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goVMn-0003o4-2e for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 10:32:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goVML-0003eJ-Fn for guix-patches@gnu.org; Tue, 29 Jan 2019 10:31:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goVM9-0008Ql-VT for guix-patches@gnu.org; Tue, 29 Jan 2019 10:31:31 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goVLu-0008J8-Ks for guix-patches@gnu.org; Tue, 29 Jan 2019 10:31:21 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goVLq-0002H7-7T for guix-patches@gnu.org; Tue, 29 Jan 2019 10:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34246] [PATCH 0/3] Improve the upower-service style. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34246 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34246@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15487758216401 (code B ref -1); Tue, 29 Jan 2019 15:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2019 15:30:21 +0000 Received: from localhost ([127.0.0.1]:50697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goVKz-0001Rc-32 for submit@debbugs.gnu.org; Tue, 29 Jan 2019 10:30:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goVKh-0001Im-Nz for submit@debbugs.gnu.org; Tue, 29 Jan 2019 10:30:06 -0500 Received: from lists.gnu.org ([209.51.188.17]:40284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goVKZ-0007oy-PH for submit@debbugs.gnu.org; Tue, 29 Jan 2019 10:29:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goVKB-0001oC-6c for guix-patches@gnu.org; Tue, 29 Jan 2019 10:29:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goVJy-0007fn-Nm for guix-patches@gnu.org; Tue, 29 Jan 2019 10:29:15 -0500 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:41886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goVJy-0007dk-Gv for guix-patches@gnu.org; Tue, 29 Jan 2019 10:29:06 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id B423916AF7 for ; Tue, 29 Jan 2019 15:28:54 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 86de82ae for ; Tue, 29 Jan 2019 15:28:54 +0000 (UTC) User-agent: mu4e 1.0; emacs 26.1 From: Christopher Baines Date: Tue, 29 Jan 2019 15:28:48 +0000 Message-ID: <877eenqy8f.fsf@cbaines.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches These patches update the style of the upower-service. Improving and documenting the record, and deprecating the upower-service procedure. Directly using record types as default values for service types, along with default values for the fields in the record type is generally more flexible and configurable than using procedures for service configuration. It means that the configuration for the service can be changed programatically by generating new configuration based off of the original configuration, rather than having to rerun the procedure that created the configuration in the first place. Christopher Baines (3): services: Improve the upower-configuration record. services: Improve the upower-service-type. services: desktop: Deprecate the upower-service procedure. doc/guix.texi | 79 ++++++++++++++++++++++++++-------- gnu/services/desktop.scm | 92 +++++++++++++++++++++++++++------------- 2 files changed, 123 insertions(+), 48 deletions(-)