If this becomes default, would it make sense for 'guix system reconfigure'
to be able to run without a configuration file and just use the default?

Den 28. aug. 2017 18.46 skrev "Alex Kost" <[email protected]>:

> Ludovic Courtès (2017-08-28 14:04 +0200) wrote:
>
> > Hi Mekeor,
> >
> > (I think you forgot to Cc: the list.)
> >
> > Mekeor Melire <[email protected]> skribis:
> >
> >> Ludovic Courtès <[email protected]> writes:
> >>
> >>> Hello Guix!
> >>>
> >>> Following a discussion we had at the GHM today, here’s the tip of the
> >>> day!
> >>
> >> Greetings to everyone at GHM!
> >>
> >>> But wait: we can already store the config file in the instantiated
> >>> system!  Here’s how:
> >>>
> >>>   (operating-system
> >>>     ;; …
> >>>     (services (cons (simple-service 'store-my-config
> >>>                                     etc-service-type
> >>>                                     `(("config.scm"
> >>>                                        ,(local-file (assoc-ref
> >>>
> (current-source-location)
> >>>                                                      'filename)))))
> >>>                     …)))
> >>>
> >>> You instantiate that, and then /etc/config.scm (aka.
> >>> /run/current-system/etc/config.scm,
> >>> aka. /var/guix/profiles/system/etc/config.scm) contains the config
> file.
> >>
> >> Because of the frequent demand for it, I think it would make sense to
> >> offer this as pre-defined service by default, as part of Guix itself.
> >> What do you think?
>
> I was going to write the same: I also think it would be good to make
> this service the default one, so that we can always point a user to the
> system config the current system was reconfigured with.
>
> --
> Alex
>
>

Reply via email to