unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: guix-devel@gnu.org,Kurt I <gitlabcanada@runbox.com>
Subject: Re: Guix Deploy Hacking
Date: Tue, 13 Oct 2020 07:18:38 -0400	[thread overview]
Message-ID: <7815132B-430B-46B0-961D-9FA811EDD0D9@lepiller.eu> (raw)
In-Reply-To: <b4f0d6504ccd7137596eb1a215429c09ef21a610.camel@runbox.com>



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	other threads:[~2020-10-13 11:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-13  2:08 Guix Deploy Hacking Kurt I
2020-10-13 11:18 ` Julien Lepiller [this message]

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=7815132B-430B-46B0-961D-9FA811EDD0D9@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=gitlabcanada@runbox.com \
    --cc=guix-devel@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.
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).