system: Add the 'system?' field for user groups.
authorLudovic Courtès <ludo@gnu.org>
Thu, 24 Jul 2014 22:12:35 +0000 (00:12 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 24 Jul 2014 22:12:35 +0000 (00:12 +0200)
commitc8fa34265d6612c99fe80adfaa66edaddd4d5b0c
tree282167e6f1e0f9e2e3305448dc5ef7d9c6e4da1d
parent931c132a58d86287d7a73964f9731a3b578538cc
system: Add the 'system?' field for user groups.

Suggested by Mark H. Weaver.

* gnu/system/shadow.scm (<user-group>)[system?]: New field.
  (%base-groups): Introduce 'system-group' macro, and use it.
* gnu/system.scm (user-group->gexp): Pass the 'system?' field.
* guix/build/activation.scm (add-group): Add #:system? and honor it.
  (activate-users+groups): Handle the 'system?' field.
* gnu/system/file-systems.scm (%tty-gid): Choose an ID below 1000.
* doc/guix.texi (User Accounts): Document the 'system?' field.
doc/guix.texi
gnu/system.scm
gnu/system/file-systems.scm
gnu/system/shadow.scm
guix/build/activation.scm