From: ludo@gnu.org (Ludovic Courtès)
To: Evan Rowley <rowley.evan@gmail.com>
Cc: bug-Guix@gnu.org
Subject: bug#20920: Show example for GuixSD config.scm
Date: Mon, 29 Jun 2015 10:46:24 +0200 [thread overview]
Message-ID: <87oajyq4v3.fsf@gnu.org> (raw)
In-Reply-To: <CAMhuX2A1M8YE1nG6jFMP7gpHAsoRMiVgfGNw7CT9kFNZdVa17w@mail.gmail.com> (Evan Rowley's message of "Sun, 28 Jun 2015 10:22:44 -0400")
Hello,
Evan Rowley <rowley.evan@gmail.com> skribis:
> I'm very interested in running a GuixSD system. I'm currently setting
> one up now, and am hoping someone here would be kind enough to share
> their /etc/config.scm with me. Particularly, I'm looking for examples
> of how a system with multiple partitions would be defined in the
> config.scm file.
>
> My Partitions
> 1. bios_grub 10M
> 2. /boot 500M
> 3. /swap 16.5G
> 4. /root 50G
> 5. /usr 50G
> 6. /var 50G
> 7. /home 50G
I’m using a separate encrypted /home and a swap partition, so the
declaration looks like this:
--8<---------------cut here---------------start------------->8---
(operating-system
(host-name "pluto")
(timezone "Europe/Paris")
(locale "en_US.utf8")
(bootloader (grub-configuration
(device "/dev/sda")))
(mapped-devices (list (mapped-device
(source "/dev/sda3")
(target "home")
(type luks-device-mapping))))
(file-systems (cons* (file-system
(device "root")
(title 'label)
(mount-point "/")
(type "ext3"))
(file-system
(device "/dev/mapper/home")
(mount-point "/home")
(type "ext3"))
%base-file-systems))
(swap-devices '("/dev/sda4")) ;XXX: LABEL=swap
;; ...
)
--8<---------------cut here---------------end--------------->8---
Normally you just need to add extra ‘file-system’ declarations for /var
and /boot in there, and you’re done.
/usr doesn’t make sense on GuixSD because that directory is not used at
all.
HTH,
Ludo’.
PS: Please use guix-devel@gnu.org for discussions; bug-guix@gnu.org goes
to the bug tracker at <http://bugs.gnu.org/guix>.
next prev parent reply other threads:[~2015-06-29 8:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-28 14:22 bug#20920: Show example for GuixSD config.scm Evan Rowley
2015-06-29 8:46 ` Ludovic Courtès [this message]
2015-06-29 18:18 ` Evan Rowley
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oajyq4v3.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-Guix@gnu.org \
--cc=rowley.evan@gmail.com \
/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 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.