* Installing system with packages, sysconfig.scm syntax
@ 2015-03-09 18:14 白い熊 @相撲道
2015-03-09 22:08 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: 白い熊 @相撲道 @ 2015-03-09 18:14 UTC (permalink / raw)
To: guix-devel
I'm trying to understand the sysconfig.scm syntax to specify when clean installing the system or running “guix system reconfigure”.
In the manual I've seen the example with Emacs. But I don't understand why there's:
(use-modules (gnu)
(gnu packages emacs)
and then in the operating-system section
(packages (cons emacs %base-packages))
Let's just say I want to reconfigure the system with packages emacs, mc, xmodmap, and xterm installed for user joe. What do I put in the sysconfig.scm? I've tried many combinations, but can't accomplish this simple task.
I understand I can install the system with a working sysconfig.scm and then install the packages manually via “guix package -i” but I think they all can be defined in sysconfig.scm, just can't figure out how, even though I'm trying to get hints in the manual. Or am I wrong in this?
Also, when installing from the USB, after booting the USB, can I “guix pull” and then install the system? Or do I have to first install, then boot it, then “guix pull”, meaning I couldn't maybe put all package definitions in the install sysconfig.scm, as the packages might not be available before “guix pull”?
--
白い熊 @相撲道
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Installing system with packages, sysconfig.scm syntax
2015-03-09 18:14 Installing system with packages, sysconfig.scm syntax 白い熊 @相撲道
@ 2015-03-09 22:08 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-03-09 22:08 UTC (permalink / raw)
To: 白い熊 @相撲道; +Cc: guix-devel
"白い熊 @相撲道" <guix-devel_gnu.org@sumou.com> skribis:
> I'm trying to understand the sysconfig.scm syntax to specify when clean installing the system or running “guix system reconfigure”.
>
> In the manual I've seen the example with Emacs. But I don't understand why there's:
>
> (use-modules (gnu)
> (gnu packages emacs)
>
> and then in the operating-system section
>
> (packages (cons emacs %base-packages))
>
> Let's just say I want to reconfigure the system with packages emacs, mc, xmodmap, and xterm installed for user joe. What do I put in the sysconfig.scm? I've tried many combinations, but can't accomplish this simple task.
The ‘packages’ field describes packages that will be in the global
profile–i.e., /run/current-system/profile. These are visible from every
user account.
There’s currently no way to describe how to populate a specific user’s
profile. It would be hard to integrate with the ‘guix package -i’
approach anyway.
> Also, when installing from the USB, after booting the USB, can I “guix pull” and then install the system? Or do I have to first install, then boot it, then “guix pull”, meaning I couldn't maybe put all package definitions in the install sysconfig.scm, as the packages might not be available before “guix pull”?
Both should work. On the USB image, make sure to start the ‘cow-store’
service to avoid storing everything in RAM.
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-09 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-09 18:14 Installing system with packages, sysconfig.scm syntax 白い熊 @相撲道
2015-03-09 22:08 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.