Re: How to install guix system from existing linux with guix package manager?
Hello kiasoc5, IMHO what you are trying to do is an interesting path to... ascension :-) For my desktop and laptop I'm still using Guix on top of a foreign distro (Debian) because... I'm conservative :-D, so I'd very much like to have a way to try to slowly switch to Guix System with the "safety net" to be able to boot my current system if I'm in trouble; this way also I can spare some cash avoiding to buy a new dedicated machine for this experiments. kias...@disroot.org writes: [...] > @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) Also backup /var/guix so you should be able to restore a working Guix status (with working I mean in your current foreign distro) > 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 [...] >%base-file-systems)) In your snippet config you missed to mount /home ;-) (you also need to configure GRUB for dual boot, but I guess you know) > 3. configure uefi to boot guix grub by default > > WDYT? any tips/suggestions? I never tried this, but beware that the UID and GID of user(s) in your new Guix System sould be the very same of the arch system to be able to access homes, /including/ Guix profiles of users (stored in /home/$USER...) Important: if you want to be able to share the store between the two systems you should also share the /status/ of Guix, stored in LOCALSTATEDIR/guix/ (usually /var/guix), since it contains a lot of useful data and AFAIU it must be kept in sync between the foreign distro and the Guix System [1]. This is the most critical part about being able to share Guix between two different host operating systems. Last but not least, once you have installed Guix System you have to decide what manages your GRUB configuraton: Guix System or arch, you cannot share the grub config between the two; Guix System have a stateless GRUB config (and it' good and fair) so I suggest you to use it for GRUB configuration, but if you decide to keep using arch this is a good tip: https://yhetil.org/guix/20181031125428.GA814@doom/ There's nothing else it comes to my mind now regarding this "migrate and share path" AFAIU with the above caveats, you should be able to "share Guix" between the two systems in dual boot. Please let me know your progresses, I'm interested! Happy Hacking! Gio' -- Giovanni Biscuolo Xelera IT Infrastructures signature.asc Description: PGP signature
info about (identifier-syntax)
Hi guix! where i can find documentation about (identifier-syntax) (what it is and what it does)?
Re: info about (identifier-syntax)
Hi Adam, Adam Kandur 写道: Hi guix! where i can find documentation about (identifier-syntax) (what it is and what it does)? Start with ‘info guile’ if you haven't yet. Or was that unclear? There's also guile-user at gnu dot org, but I don't know how active it is. Kind regards, T G-R signature.asc Description: PGP signature
Setting up a geiser development environment
Hello! I am trying to learn using guix and I think having access to a usable repl would be helpful. I have installed geiser to use with guix. I use the ELPA version of geiser. I installed guix on a foreign distro with the installation script found on the website. What do I need to do to make guix symbols available for use with a REPL? For example, I open a scheme file in Emacs and start geiser, but when I evaluate for example: (specifications->manifest (list "guile")) It says specifications->manifest is unbound. -- With kind regards Einar
Re: Setting up a geiser development environment
Hi, Einar Largenius writes: > Hello! > > I am trying to learn using guix and I think having access to a usable > repl would be helpful. > > I have installed geiser to use with guix. I use the ELPA version of > geiser. I installed guix on a foreign distro with the installation > script found on the website. > > What do I need to do to make guix symbols available for use with a REPL? > > For example, I open a scheme file in Emacs and start geiser, but when I > evaluate for example: > > (specifications->manifest > (list "guile")) > > It says specifications->manifest is unbound. > You need to have guix in the %load-path variable, then load the module containing `specifications->manifest`. The easiest way is to just run guix repl from a terminal (or shell in emacs) to get a repl. Or if you want to use geiser you can use guix shell to setup the right environment and launch emacs guix shell guix guile --emacs Once you got the correct load path setup you can just import the module containing `specifications->manifest` in the repl. (use-modules (gnu packages)) To find which module that contain that procedure, you can search for it in the guix manual and it will say just above it what module it contains. Alternative you can clone the guix repo and call something like consult-ripgrep in emacs on it with the search term #specifications->manifest#define The guix manual will also describe how to setup emacs for hacking on guix [0] that might be useful. [0] https://guix.gnu.org/manual/en/html_node/The-Perfect-Setup.html I hope that helps. -- s/Fred[re]+i[ck]+/Fredrik/g