From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id OH9FNZB9U2aRswAAqHPOHw:P1 (envelope-from ) for ; Sun, 26 May 2024 20:21:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OH9FNZB9U2aRswAAqHPOHw (envelope-from ) for ; Sun, 26 May 2024 20:21:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=selfhosted.xyz header.s=dkim header.b=z3dXduOK; 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=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716747664; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=WqtNA5azd5Dlw3jXUXIdlBzfsc3RoV1V1WxK1j7B5wQ=; b=rX1puDJWJtG6mcGzjZKnSr7JHsBG/X47tYO1cpKi9dg6Pr0XXu/E8J0tl8t4nOph7zY6CI Kk4P9GQBKr2K80nTJZHWu7IsNtGpiFf6abUOa6seXLEt4+aNeWPEj/AJiClqQ+FZEYlAvp SDQ8GID8gHqqynk2VMjNl0G6Bzz38OUY+UVsI+Gftkbnb7Fhc8i7XJMfLuJRf5Xnda6iod OOvxx/Ez0PqV8BQeQIpNt8OK29IZdhdRCe4UAClqcvq8Kn7ncQN6QaWSYe/8ay98J1pOjn lXqEYkgHDcddCuVxZw1B7xT/+6mRoaAht0KjA3YG86ra6lKaU21n1qovq9wd2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=selfhosted.xyz header.s=dkim header.b=z3dXduOK; 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=fail reason="SPF not aligned (relaxed)" header.from=selfhosted.xyz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716747664; a=rsa-sha256; cv=none; b=PBdrBbFmtdCdizJNqHFejVssLoiDV9him9xq0/evvHr91PhiZc6Ie74j85a5kaIqmwuqX7 ey12A0VI/boxPw8nYq5CZd/xTLOV+VWYIz9czLXaKzdD4XRfurgq/Iz2yPum28KL/cPUxR fkjgsC0oPsaIACCj0XJgjYPUWgJRy7+sY79vgXK8IHsp9N5//NO8w+WxzBlPZjtbndTUsH iBHCQ5SAG3/Vb959/ptIaEFznWtd9pUQjSzoHOelIkkDIvdKJ67PsZYchofKFvDpKh3Pg/ 5AjqTPmgayx7R7l/ZijpHLO3UPOvyMOyKQI56P9Uw7x8SAbbMr92QT6QZWfl9g== 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 7BB416BA10 for ; Sun, 26 May 2024 20:21:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBIDh-00028m-Kj; Sun, 26 May 2024 14:03:45 -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 1sBIDg-00028Q-AV for help-guix@gnu.org; Sun, 26 May 2024 14:03:44 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBIDd-0005W3-DY for help-guix@gnu.org; Sun, 26 May 2024 14:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1716746612; bh=V7NHXaJ3OIPnmhXWDtgmfyOlw4wvOem0RYrQl7hSQUU=; h=Date:From:To:Subject:In-Reply-To:References; b=z3dXduOKB337ZCM4MDy/yqzI7zeYDgRnZvArHz7VpmLe0wK/YExfqlKHgomJgLR1P 2+CKnoVV3aYQnEMubkZViZVdP8sDU/72oXcD0kmfW2PVB7f5v1pwJTlSNmackQnwgw 6MmbXgb/16R3LvPTfuzMyQ2X9b2kJ6BHfGKZKYqEfqMOznzVcoEW9QkQYMiagT764a fh82mz4SZHS4disU8RAE/59FF75lTbMoPQPCh9lYAFC7R/okCP5sG38FGZR0jOO8Gv Ak9N7yQ7DCyKE/xei8PecW7HVLF0DSiN16oqcVlPV4C/U4IZ9oNxDFY2WlCuTDtdWb yT6bWYRAFg+QA== Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id C19AB984227C for ; Sun, 26 May 2024 20:03:26 +0200 (CEST) X-Fuglu-Suspect: dd86f7bd28e445318d4bff60c9eba5ab X-Fuglu-Spamstatus: NO Received: from [127.0.0.1] (unknown [185.236.203.99]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA for ; Sun, 26 May 2024 20:03:26 +0200 (CEST) Date: Sun, 26 May 2024 20:03:24 +0200 From: David Larsson To: help-guix@gnu.org Subject: Re: Automated /etc/config.scm In-Reply-To: <22299782.EfDdHjke4D@akashi> References: <22299782.EfDdHjke4D@akashi> Message-ID: <20D09A2B-5A17-4CE3-BC0F-8A1C3412D80F@selfhosted.xyz> MIME-Version: 1.0 Received-SPF: pass client-ip=217.64.149.7; envelope-from=david.larsson@selfhosted.xyz; helo=server0.selfhosted.xyz X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 3.86 X-Spam-Score: 3.86 X-Migadu-Queue-Id: 7BB416BA10 X-Migadu-Scanner: mx13.migadu.com X-TUID: eDF9qVHVZ8Sf Hi Marek, I think its not possible to have guix pull edit /etc/config=2Escm without = modifying how that command behaves in guix=2E But it is possible to edit /etc/config=2Escm when running guix system reco= nfigure, by using a service as described here: https://lists=2Egnu=2Eorg/archive/html/help-guix/2017-08/msg00095=2Ehtml Though perhaps that's not exactly the answer you are looking for? If you want to be able to push new configs to some channel git repo and ha= ve that reflected in a target host after a guix pull + reconfigure from the= host, then I can suggest adding system configuration variables in the chan= nel referring to the various systems you want to deploy=2E Then adding mini= mal config=2Escm files on the deploy targets=2E Those config=2Escm files ca= n have '(use-module (mychannel my-systems))' or similar, and then just '%my= -os-system1', etc on the final line=2E I hope it helps, but not sure=2E Regards, David On May 26, 2024 3:58:23 PM GMT+02:00, "Marek Pa=C5=9Bnikowski" wrote: >While pursuing a solution to another problem I saw some documentation whi= ch=20 >inspired me to question whether it is possible to have an operating-syste= m=20 >configuration which injects itself into the /etc/config=2Escm file=2E > >Currently the content of my /etc/config=2Escm file reflects the state of = system=20 >upon installation, as I had always used my git repository to manage the s= ystem=20 >configuration files=2E > >I have already built the infrastructure to host my configurations on my h= ome=20 >server=2E I would like now to ditch the configuration repositories' clon= es in=20 >the home directories on my computers and rely entirely on the combination= of=20 >the system-wide channels (this I have implemented) and the /etc/config=2E= scm=20 >file=2E > >Is there a way to have 'guix pull' edit the /etc/config=2Escm file to mir= ror the=20 >designated system configuration file? I assume that any module imports ar= e=20 >handled by an existing guix infrastructure, because I had no need to use = the >-L switch during reconfigurations for a while=2E