From: Efraim Flashner <efraim@flashner.co.il>
To: Sergey Trofimov <sarg@sarg.org.ru>
Cc: Ricardo Wurmus <rekado@elephly.net>, guix-devel@gnu.org
Subject: Re: Are declarative app configs worth it?
Date: Thu, 28 Dec 2023 16:28:02 +0200 [thread overview]
Message-ID: <ZY2F8tvV8Gid-DjE@3900XT> (raw)
In-Reply-To: <87zfxwgk3g.fsf@sarg.org.ru>
[-- Attachment #1: Type: text/plain, Size: 2565 bytes --]
On Wed, Dec 27, 2023 at 08:38:24AM +0100, Sergey Trofimov wrote:
>
> Ricardo Wurmus <rekado@elephly.net> writes:
>
> > Sergey Trofimov <sarg@sarg.org.ru> writes:
> >
> > > - adding it to guix increases maintenance burden: new versions could
> > > add or remove config options
> >
> > This is why there should be automated tests. There are too few of them.
> >
>
> that adds up to the pile of boilerplate to implement a simple config. If
> guix mandates it for new packages, it'll raise the bar for contribution even
> higher than it already is.
>
> > > - it bloats guix: imagine if we add configs for every
> > > user-configurable app
> >
> > That would be nice.
> >
> > If we started to accept the term bloat we could easily apply it to
> > anything in Guix: all that R stuff? Bloat! All that bioinfo stuff?
> > Bloat!
> >
>
> imo, R and bioinfo should be in channels.
That wasn't a serious suggestion.
> > > - such configs are not easily transferrable: if I were to use the
> > > same app in non-guix env, I'd have to maintain 2 configs
> >
> > We are generating configuration files from our config languages. So you
> > would only need to generate them and copy them for your non-guix
> > environment.
> >
>
> Sure, that's why I wrote "not easily". My non-guix env is a corporate Mac
> laptop. Currently I just clone my dotfiles, symlink required configs and
> it's done. I can make changes in both environments and there is no
> unnecessary "compiling" step involved.
You're not required to use the guix-home bits. I didn't for a long time,
and there are still a lot of config files that I have that I either
symlink into place or I write out in my guix-home config file to be
splatted into place. I still regularly scp my .screenrc and .inputrc to
other machines.
> > > Another recent example is `oci-container-configuration` which
> > > defines
> > > a subset of docker-cli startup arguments. The problem is that
> > > `docker
> > > run` command has 96 options and the configuration only uses a
> > > handful,
> > > lacking a way to provide the remaining ones.
> >
> > All config bindings need to have an escape hatch.
> >
> That would be great.
Most services have an extra-options (or similarly named) field where you
can add extra bits to the config.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2023-12-28 14:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-26 13:53 Are declarative app configs worth it? Sergey Trofimov
2023-12-26 14:56 ` Ricardo Wurmus
2023-12-26 15:05 ` John Soo
2023-12-26 15:18 ` Nguyễn Gia Phong via Development of GNU Guix and the GNU System distribution.
2023-12-26 16:50 ` Ricardo Wurmus
2023-12-27 1:34 ` Nguyễn Gia Phong via Development of GNU Guix and the GNU System distribution.
2023-12-26 15:39 ` Attila Lendvai
2023-12-26 16:49 ` Ricardo Wurmus
2023-12-27 7:38 ` Sergey Trofimov
2023-12-28 14:28 ` Efraim Flashner [this message]
2023-12-27 4:15 ` Murad Mamedov
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=ZY2F8tvV8Gid-DjE@3900XT \
--to=efraim@flashner.co.il \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
--cc=sarg@sarg.org.ru \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).