From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id aExDOtfrfGQeFwAASxT56A (envelope-from ) for ; Sun, 04 Jun 2023 21:54:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oAV2OdfrfGQ2cAEAG6o9tA (envelope-from ) for ; Sun, 04 Jun 2023 21:53:59 +0200 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 A7CA831A41 for ; Sun, 4 Jun 2023 21:53:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5tnG-0007eP-Pj; Sun, 04 Jun 2023 15:53:39 -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 1q5tnC-0007e5-FM for help-guix@gnu.org; Sun, 04 Jun 2023 15:53:34 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5tn9-0003Pi-Bp for help-guix@gnu.org; Sun, 04 Jun 2023 15:53:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 2D094240027 for ; Sun, 4 Jun 2023 21:53:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685908404; bh=WB5KkyU6J17+Di5HoMsvv3QvDV8eitVsNpXw9Pk6KIQ=; h=From:To:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ImKvb92oYEd6ghrd963yveHDPPOlNA9M6S8aCOWocPQTW3asS+FXs92MaEELzip1l rGnmxbqEB+/UfbNdJrE+jEFcxhQ09GL9/O2iE1r0qohICk0vHjSZFcHC7wwtwR1vQp CobUv7KG1bDPA0q5UxjWfJ7gJNKG7NPI55tfZFyXq69WNTJsSO1doLqYVcLiDumXOa hTOjeTX7GDNAqIj8K8BQm0Uo7B61zKK4jBMBZ2l3rpKU3nISre4SL5gxZUMbzCFiO1 5OS17Do6D3ouAdo4SwMbzSCg6vojcB6lMklM8Edm18GLgB4GVVbhHAvhzJP0oTC2Fi CYPcCv9M5Bpiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QZ6qR3kchz9rxH for ; Sun, 4 Jun 2023 21:53:23 +0200 (CEST) From: Fredrik Salomonsson To: help-guix Subject: Nested modify-services Date: Sun, 04 Jun 2023 19:53:21 +0000 Message-ID: <87bkhvxavi.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Seal: i=1; s=key1; d=yhetil.org; t=1685908439; a=rsa-sha256; cv=none; b=EgW3pWWzJLvDXPpCDlUETjHEeaQNM9BZXdme3EL9WCeWCMp0v06Dozm+sD+uigS9cOxykp 9buZoV3iu+B6W+Xx1/MPHaaVeSpu3LcB2zDw0WI+SpAPJDwwHSTvIqKrvA34Xm/pyCzGhL a9P37lZ/yp5EL6YtEjMJ4+tbJHFwxatMT/CnTkvuAs4kscogKSGgGGe60Nt0igHkhfd8BE 8EALQZZD/d31arDL3fru4I2pRFeHtGcbn5Mmxj2RCHcC3zYJvPqMigt01W3p8FJ3x5Tk7s u1iXaXuFLkcQcmmry+WcDPoD5bWeNO5310tI+5cF71K5F2MS4NyGWKtA+QIuxg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ImKvb92o; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685908439; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t3S4BfpyEJSWPMfWXa5GJQCA2quAz32PgEfsLJAs4OQ=; b=bPlJErToJwImTUTS9g8bP1K3rIvpu+UKQXNtt4ImWd2Zlc99EuuXz5GyN9a9HcA6n1XI4y MHZ4nuQNxF98ea1FI5tEWKeGartMwB6jkD1ob+Tuqzo7r4tOtk/auzP8gdnXWhpvZCKOO6 OwESdxbfGSQtupfTvBL4Q5kM/TS0f4fmPf2WdnT5w6HRH7yqCZfNA7OGVZ5PNom0SQnk3Z Nq0wYe9g8akTMyBmiriSIB9d8Lz+7vvgaC6E4IubBpQYchWciVm3ioujwc5z/49E3f9Dy9 /SWdxqaVbmO8uNWPD1+UK/1DoiYIYV4v7oXVmzXa9jZoGoUYUnsS/un4a1sfLQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ImKvb92o; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.16 X-Spam-Score: -10.16 X-Migadu-Queue-Id: A7CA831A41 X-TUID: hR6ws9Fqauxi Hi Guix, Yesterday I encountered an issue when I updated my desktop machine: sudo -i guix pull && sudo -i guix system reconfigure ~/projects/plt/plt/s= ystem/machines/surt.scm=20 --8<-----------------------------------------------------------------------= ----- =E2=80=A6 guix system: warning: exception caught while executing 'eval' on service 'r= oot': error: remove: unbound variable guix system: warning: some services could not be upgraded hint: To allow changes to all the system services to take effect, you will = need to reboot. ---------------------------------------------------------------------------= ->8-- But I didn't get that with my laptop. Both share a lot of the same system configuration as I've created my own channel[0], where I have both configs inherting from a common config. I traced the issue to how I was setting up the extra services on my desktop machine[1]: --8<-----------------------------------------------------------------------= ----- (define plt-surt-os (operating-system (inherit %plt-base-operating-system) (host-name "surt") ;; =E2=80=A6 (services (cons* ;; =E2=80=A6 (service console-font-service-type (map (lambda (tty) (cons tty (file-append font-terminus "/share/consolef= onts/ter-132n"))) '("tty1" "tty2" "tty3" "tty4" "tty5" "tty6"))) (modify-services %plt-base-services (delete console-font-service-type)))))) ---------------------------------------------------------------------------= ->8-- Where my %plt-base-services[2] is defined as: --8<-----------------------------------------------------------------------= ----- (define %plt-base-services (cons* (service plt-home-rottlog-service-type) (service plt-automount-service-type) ;; =E2=80=A6 (modify-services %desktop-services (delete gdm-service-type) (network-manager-service-type config =3D> (network-manager-configuration (inherit config) (dns "dnsmasq") (vpn-plugins (list network-manager-openconnect)))) ;; =E2=80=A6=20=20=20=20 ))) ---------------------------------------------------------------------------= ->8-- If I remove the modify-services call on my desktop machine, or move it to %plt-base-services. The error goes away. I noticed that there was a recent change in modify-services[3] that is most likely behind my issue. Is nesting modify-services supported, I.e call modify-services on a list that already been modified by modify-services? If not, what would be the best way of sharing services between configurations and allow for custom tweaks per machine. Thanks! [0] https://git.sr.ht/~plattfot/plt [1] https://git.sr.ht/~plattfot/plt/tree/2abf21f5/item/plt/system/machines/= surt.scm [2] https://git.sr.ht/~plattfot/plt/tree/2abf21f5/item/plt/system/machines.= scm [3] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3Ddbbc7e946131ba2= 57728f1d05b96c4339b7ee88b --=20 s/Fred[re]+i[ck]+/Fredrik/g