Le 12 octobre 2020 22:08:44 GMT-04:00, Kurt I <gitlabcan...@runbox.com> a écrit
:
>Greetings,
>
>I am attempting to use "Guix Deploy" as a replacement for Norton
>Ghost/SCCM, imaging type software.
>
>There are 2 tasks I'm working on:
>
>1) Using deploy to update a machine
> - I don't understand the point of pushing packages to a system
>that disappear if you do a "guix system reconfigure" on that machine.
>
>To deal with this I have this code in my deploy file:
>
>;; This will locate where the system config file is
>(define this-file
> (local-file (basename (assoc-ref (current-source-location) 'filename)
> "config.scm")))
>
>;; This replaces or creates a new system config file
> (simple-service 'config-file etc-service-type
> `(("lr.scm" ,this-file)))
>
>Perhaps an argument to "Guix Deploy" to optionally save the file you
>are pushing on the remote machine could be added?
This was not the case with 1.1.0, but now we register the file that generated
your system as /run/current-system/config.scm, with provenance information.