From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WLnAKOPzDWB8RAAA0tVLHw (envelope-from ) for ; Sun, 24 Jan 2021 22:25:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ZQRvJOPzDWDgKQAAbx9fmQ (envelope-from ) for ; Sun, 24 Jan 2021 22:25:39 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2216F940149 for ; Sun, 24 Jan 2021 22:25:39 +0000 (UTC) Received: from localhost ([::1]:57262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l3npB-00041q-Kl for larch@yhetil.org; Sun, 24 Jan 2021 17:25:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3nov-00041f-0S for help-guix@gnu.org; Sun, 24 Jan 2021 17:25:21 -0500 Received: from zancanaro.com.au ([45.76.117.151]:59942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l3not-00026C-B8 for help-guix@gnu.org; Sun, 24 Jan 2021 17:25:20 -0500 Received: by zancanaro.com.au (Postfix, from userid 116) id 809E832D9B; Sun, 24 Jan 2021 22:25:13 +0000 (UTC) Received: from jolteon (unknown [27.96.215.68]) by zancanaro.com.au (Postfix) with ESMTPSA id 3939C31DC1; Sun, 24 Jan 2021 22:25:12 +0000 (UTC) References: <874kj6duek.fsf@colimite.fr> User-agent: mu4e 1.4.14; emacs 27.1 From: Carlo Zancanaro To: Sergiu Ivanov Subject: Re: Defining custom services in /etc/config.scm In-reply-to: <874kj6duek.fsf@colimite.fr> Date: Mon, 25 Jan 2021 09:25:10 +1100 Message-ID: <87wnw2ynuh.fsf@zancanaro.id.au> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=45.76.117.151; envelope-from=carlo@zancanaro.id.au; helo=zancanaro.com.au X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 2216F940149 X-Spam-Score: -2.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: N1TsEw+asiyN Hi Sergiu! On Mon, Jan 25 2021, Sergiu Ivanov wrote: > I understand that I should somehow construct a (?) > from my , but I don't see a way to do it. Unfortunately Guix overloads the word "service", where we have (a) services that consist of structured modifications to an operating system, and (b) shepherd services that define a process that will run on the resulting system. Shepherd services cannot be used directly, but need to be added to an instance of the shepherd-root-service-type service. The easiest way to do this is to use simple-service (documented in "(guix) Service Reference" in the manual). Putting it together, this should return a service object which runs your redshift shepherd service: (simple-service 'redshift-service 'shepherd-root-service-type (list redshift-service)) I hope that helps! Carlo