From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: Services and packages in GuixSD Date: Wed, 12 Aug 2015 09:13:39 +0800 Message-ID: <87egj9mhq4.fsf@gmail.com> References: <87lhdkpfeu.fsf@igalia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPKax-0004RI-Jf for guix-devel@gnu.org; Tue, 11 Aug 2015 21:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPKau-0003ad-Dt for guix-devel@gnu.org; Tue, 11 Aug 2015 21:12:43 -0400 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:35456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPKau-0003a0-7C for guix-devel@gnu.org; Tue, 11 Aug 2015 21:12:40 -0400 Received: by pdrg1 with SMTP id g1so1140493pdr.2 for ; Tue, 11 Aug 2015 18:12:39 -0700 (PDT) In-Reply-To: <87lhdkpfeu.fsf@igalia.com> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andy Wingo , guix-devel@gnu.org Andy Wingo writes: > Hi, > > There are a few services whose behavior depends on the set of installed > packages or services, or which should depend on those sets. For example > with %desktop-services specified, udev should be adding rules for upower > and colord, AFAIU. Likewise for dbus: it would be nice if the set of > selected packages and services were grovelled for dbus files. > > For example this is my current services definition: > > [...] > > I can't switch to use %base-services or %desktop-services because of the > udev-service and dbus-service configurations. That's the bug I'm trying > to solve here. > > Would it be possible to allow services to grovel the set of installed > packages and services to "finalize" their configuration? We might have > to take care to avoid service configuration depending on service > configuration, but I reckon that's possible to take into account. IIUC, the packages in profile need to be known by those services. I think two ways can do this: 1. Build a configuration file for the service with packages listed explicitly. 2. Use a configuration file for the service with respect to profile. Currently, most services go for 1 (eg: dbus, udev). And I don't know a clear way to pass packages field to the monadic service procedure. I did use 2 for slim, by using '/run/current-system/profile/share/xsessions' in its configuration file. How about go with 2 for dbus-service too? By using '/run/current-system/profile/share/dbus-1/system-services' in its configuration file.