From: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
To: help-guix@gnu.org
Subject: Re: Automated /etc/config.scm
Date: Sun, 26 May 2024 20:41:48 +0200 [thread overview]
Message-ID: <1893175.CQOukoFCf9@akashi> (raw)
In-Reply-To: <20D09A2B-5A17-4CE3-BC0F-8A1C3412D80F@selfhosted.xyz>
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
26.05.2024 20:03:24 CEST David Larsson:
> Hi Marek,
>
> I think its not possible to have guix pull edit /etc/config.scm without
> modifying how that command behaves in guix.
>
> But it is possible to edit /etc/config.scm when running guix system
> reconfigure, by using a service as described here:
> https://lists.gnu.org/archive/html/help-guix/2017-08/msg00095.html
>
> 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 have
> that reflected in a target host after a guix pull + reconfigure from the
> host, then I can suggest adding system configuration variables in the
> channel referring to the various systems you want to deploy. Then adding
> minimal config.scm files on the deploy targets. Those config.scm files can
> have '(use-module (mychannel my-systems))' or similar, and then just
> '%my-os-system1', etc on the final line.
>
> I hope it helps, but not sure.
>
> Regards,
> David
I do not 'deploy' my systems.
After reading the linked discussion and combining it with what I know; I think
the best approach would be to dig into wherever guix pull caches the channel
modules and link the newest revision of the system-configuration.scm to a
predictable file; which could then be combined with with the reconfigure
command for a quick update alias. :/
On the upside, this is my opportunity to learn more about Guix. While writing
this response I digged around in $GUILE_LOAD_PATH and found a bunch of
modules. Sadly, none of those are mine, but maybe they are only exposed to
the guix build users?
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-05-26 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 13:58 Automated /etc/config.scm Marek Paśnikowski
2024-05-26 18:03 ` David Larsson
2024-05-26 18:41 ` Marek Paśnikowski [this message]
2024-05-26 20:51 ` Richard Sent
2024-05-27 3:41 ` Marek Paśnikowski
2024-05-27 16:31 ` Richard Sent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1893175.CQOukoFCf9@akashi \
--to=marek@marekpasnikowski.pl \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).