From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: guix system disk-image: preset user profiles (packages & arbitrary data) Date: Sat, 23 Jun 2018 21:58:59 +0200 Message-ID: <871scxb7gc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53820) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWogb-0005WA-Hu for help-guix@gnu.org; Sat, 23 Jun 2018 15:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWoga-0005nA-Od for help-guix@gnu.org; Sat, 23 Jun 2018 15:59:05 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:56248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWoga-0005ms-GM for help-guix@gnu.org; Sat, 23 Jun 2018 15:59:04 -0400 Received: by mail-wm0-x234.google.com with SMTP id v16-v6so5256585wmh.5 for ; Sat, 23 Jun 2018 12:59:04 -0700 (PDT) Received: from mimimi (2a01cb040a37a0005adf9a0845f647b3.ipv6.abo.wanadoo.fr. [2a01:cb04:a37:a000:5adf:9a08:45f6:47b3]) by smtp.gmail.com with ESMTPSA id v14-v6sm11251789wro.33.2018.06.23.12.59.00 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Jun 2018 12:59:01 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix --=-=-= Content-Type: text/plain Hi there, I'd like to built a live disk-image for a USB stick I carry around with me. Booting it would result in the exact configuration I have on my machine. I can create a disk image with: > guix system disk-image ~/.guix-config/config.scm Then boot the live and set up my user profile as follows: --8<---------------cut here---------------start------------->8--- ## First retrieve my GPG keys. ## Then retrieve my dotfiles: > git clone https:// ## Custom script to install the dotfiles and install the Guix packages. > ./dotfiles/.local/bin/homeinit ## Log out and in again. --8<---------------cut here---------------end--------------->8--- Ideally I'd rather spare those few steps on each reboot, so I'd like to create a disk image containing a user profile that comes with a selection of packages and some arbitrary data (my dotfiles). I wonder if it's doable from an operating system declaration. I'm also wondering now if the USB stick is writable. That would solve it then. Any insight? -- Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlsupoMACgkQm9z0l6S7 zH+jIAf/XYB0LQICc/BF63bZVEo1pFUpUKJpyw89sDsnNGNDN5oAWcLnF4BmEjBV blitDV8hr/qucdfbfVnn0y+zm48JrrEWE9/9pS8Bn0n8RPAiEaQzY9Yy3GOW1gRy 76COaQSogilztOSJ6Y1SUJ6ifXGV8vWnwYl9fy6Z9jchKH1iEWaK2zY4ATbdbh6R jGOWhTVKYx4I7iR+XwlbACeMHOFA9goOOQ024dhlbhe8TbQiaV9zlIQW+6LYvXkZ 69do4oWMR7ivN51S58KIFFLJXoBq78+7zY8QzqZVunSE1Qf1X6FFeifRiNMfbEco Dbvpxxulvziq2J7FRVhIlBd1RW32Jw== =ZOHY -----END PGP SIGNATURE----- --=-=-=--