From: kiasoc5@disroot.org
To: help-guix@gnu.org
Subject: How to install guix system from existing linux with guix package manager?
Date: Thu, 26 May 2022 22:21:28 +0000 [thread overview]
Message-ID: <45a3b0f65ad8a06985a6ae12289136da21c03dee@disroot.org> (raw)
How would I install Guix system from an existing Linux that has the guix package manager on it (aka from a foreign distro)?
Specifically I have Guix installed on Arch Linux on an encrypted btrfs ssd. I have a @home subvolume mounted on /home. Currently /gnu/store is not a subvolume, but I'd like to reuse it for guix system. I also have the efi system partition for uefi boot.
What I'd like to do is install Guix system and boot from a subvolume. Ideally the guix fstab would be like this:
@guix-root is mounted on / on guix system
@gnu-store is mounted on /gnu/store on guix system and shared between arch and guix
@home is mounted on /home and shared between arch and guix
So I think the steps are as follows:
0. backup data (just in case)
1. move /gnu/store to subvolume
2. install Guix system manually with the following file systems:
(mapped-devices
(list (mapped-device
(source (uuid "my-uuid"))
(target "cryptroot")
(type luks-device-mapping))))
(file-systems (append
(list (file-system
(device (file-system-label "cryptroot"))
(mount-point "/")
(type "btrfs")
(options "subvol=@guix-root")
(dependencies mapped-devices))
(file-system
(device (file-system-label "cryptroot"))
(mount-point "/gnu/store")
(type "btrfs")
(options "subvol=@gnu-store")
(dependencies mapped-devices))
(file-system
(device (file-system-label "efi"))
(mount-point "/boot/efi")
(type "vfat")))
%base-file-systems))
3. configure uefi to boot guix grub by default
WDYT? any tips/suggestions?
next reply other threads:[~2022-05-26 22:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-26 22:21 kiasoc5 [this message]
2022-05-27 10:03 ` How to install guix system from existing linux with guix package manager? Giovanni Biscuolo
2022-05-28 10:51 ` Giovanni Biscuolo
2022-05-28 19:56 ` kiasoc5
2022-05-30 9:14 ` Giovanni Biscuolo
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=45a3b0f65ad8a06985a6ae12289136da21c03dee@disroot.org \
--to=kiasoc5@disroot.org \
--cc=help-guix@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.
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).