guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix Deploy Hacking


From: Julien Lepiller
Subject: Re: Guix Deploy Hacking
Date: Tue, 13 Oct 2020 07:18:38 -0400
User-agent: K-9 Mail for Android


Le 12 octobre 2020 22:08:44 GMT-04:00, Kurt I <gitlabcanada@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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]