From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uKTEJGG/DWRVuQAASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 13:02:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oA3PI2G/DWRvQAEAG6o9tA (envelope-from ) for ; Sun, 12 Mar 2023 13:02:41 +0100 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 59BBA2C871 for ; Sun, 12 Mar 2023 13:02:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbKP1-0003Af-P6; Sun, 12 Mar 2023 08:02:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbKOw-00039f-PS for help-guix@gnu.org; Sun, 12 Mar 2023 08:02:10 -0400 Received: from marvid.fr ([163.172.81.107] helo=courriel.marvid.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbKOu-0000G1-P2 for help-guix@gnu.org; Sun, 12 Mar 2023 08:02:10 -0400 Received: from localhost (schwifty.marvid.fr [51.159.4.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by sahkopoika (Postfix) with ESMTPSA id 27F767F85981; Sun, 12 Mar 2023 13:02:06 +0100 (CET) References: <1f184e81-16cc-b490-80aa-9db675071361@posteo.de> User-agent: mu4e 1.8.13; emacs 28.2 From: Sergiu Ivanov To: Gottfried Cc: "Dr. Arne Babenhauserheide" , help-guix@gnu.org Subject: Re: redshift Date: Sun, 12 Mar 2023 12:07:41 +0100 In-reply-to: <1f184e81-16cc-b490-80aa-9db675071361@posteo.de> Message-ID: <87v8j641qa.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=163.172.81.107; envelope-from=sivanov@colimite.fr; helo=courriel.marvid.fr 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, FORGED_SPF_HELO=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678622561; a=rsa-sha256; cv=none; b=jyaQpXqJs5B85Lz7nvGuUdAMl/FuNh43AE5LvZw5eQxOgd3ua++89NQXdpPbyN5nam/EAG oDKMCCpPu0qF684Pl8slCa4vRTFhtdBR6cAD9loIkA+ugiNsKFG/mbZ0ddGLowNXdeSDzh IViEvuPX1Ljk1NeiWRrfZ3LFhO4NN+a/V/p9+SLdKuMFcgeCa7+aUVNKCi+LgTjy1ickmO TnYkm+GTn/GO0sc6EvDcuKt+aLlaadpxUgp8hUPfLqXrCiWI3atP6EUgQJR3HWJP4UWEl+ CP/OLPEQpStl/MzyG3EYu69jkwWfq9Fp0hJVfs1wcF2WUhuPQ9/7NTRYUfYOzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678622561; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bsnXIEd1SefqPgwRRbZhF515j6HeSr4HaAalTPlnUkM=; b=Z7jnfGemjj/1AXzDzYOzKohi960GJll/OPWFw6M+jMJB0QySobegkN8eeL/ZavuF3F7CHj zyVzIx3N9xHxZux1ix7z5AnypXQy9yzGHq4ZNttUMRH0bsasgEDgsYQJBWKNSPkqBzfJ4L LxvsUWdIGxfMOi7fEuDoWTR3v4OiAJsI+CJz2VYy69Sh8FuBDpXfU8FjlB+o1rrzjjm1n8 tLx8ebTKZxxfZ46oo6c+owTBK3ZxormsIWNRejLZSLuEYGzeBxIch6j65Id62aKtpz2/1h 7W71Fgm5WgxTRAhGymv3YHRcYj40Ic4bbn0vX9I73DbdE8ACnPDaUwBd73AAzQ== X-Migadu-Spam-Score: -3.01 X-Spam-Score: -3.01 X-Migadu-Queue-Id: 59BBA2C871 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: 19fzlmj6wQrR Hi Gottfried, Gottfried [2023-03-11T17:47:19+0100]: > I got a message from Julen Lepiller that reshift is a guix-home-service-t= ype > so I can=E2=80=99t use it in guix system. > > Have you got guix home and redshift there in your config.scm? > > I don=E2=80=99t have guix home, > so can I use redshift? guix home is a tool for managing your home configuration (the list of user packages and parts of their configuration) in the same way as you manage your system configuration [0]. In particular, this is how I update my user packages with guix home: guix home reconfigure ~/.config/guix/home.scm You don't have to use it, but some people (e.g., me) like this approach. To add Redshift to my home services, I add the following lines to home.scm [1]: (define redshift-service (service home-redshift-service-type (home-redshift-configuration (location-provider 'manual) (latitude 111) (longitude 222)))) where I replace 111 by the latitude of my location and 222 by the longitude of my location. This code defines the Redshift service and binds it to the name `redshift-service`. I then add this service to my home services using the following code: (home-environment (services (list redshift-service ...)) ...) I also have other services and I define other parameters for `home-environment`, which is why I put `...` in this example. `...` is not intended to be valid Guile in this context. After guix home reconfigure ~/.config/guix/home.scm, I can see which home services are running using the commmand herd status which shows something like: Started: + redshift + root and some other services. Mind that I run herd status as my normal user, without sudo. Running sudo herd status will show you a much longer list of system services. To see the status of my home service redshift, I run herd status redshift which shows something like: Status of redshift: It is started. Running value is 996. It is enabled. Provides (redshift). Requires (). Conflicts with (). Will be respawned. You will note that Arne's manual approach is simpler to understand, so you will probably want to go with it for now. I am posting my configuration just in case you are curious, and also for some other people who may be looking for something similar. - Sergiu [0] https://guix.gnu.org/manual/devel/en/html_node/Home-Configuration.html [1] https://guix.gnu.org/manual/devel/en/html_node/Desktop-Home-Services.ht= ml