aboutsummaryrefslogtreecommitdiff
path: root/gnu/home.scm
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-01-22 20:50:24 +0100
committerW. Kosior <koszko@koszko.org>2024-05-03 14:46:53 +0200
commit8018438b714e7dbc2504d1e00aa4e295649b4001 (patch)
tree94b10a19c455a2f43b2ac3fe5e60577948e6bd2a /gnu/home.scm
parent22c3292865eea276546f46dee8c9bb2e07f30980 (diff)
downloadguix-8018438b714e7dbc2504d1e00aa4e295649b4001.tar.gz
guix-8018438b714e7dbc2504d1e00aa4e295649b4001.zip
system: Allow adding elsewhere-defined system users to extra groups.
* gnu/system.scm (define-module): Export `operating-system-extra-groups`. (<operating-system>)[extra-groups]: New field. (operating-system-default-essential-services): Also pass extra groups to account-service. (hurd-default-essential-services): Same here. * gnu/system/accounts.scm (define-module): Use (ice-9 vlist), (srfi srfi-8) and (srfi srfi-26). Export `user-extra-groups`* and `merge-extra-groups-data`. (<user-extra-groups>): New record type. (user-account-extend): New procedure. (merge-extra-groups-data): New procedure. * gnu/system/shadow.scm (define-module): Re-export `user-extra-groups`*. (account-service-type)[extend]: Handle <user-extra-groups> records, move field intializer upward to be able to use `compose`. Change-Id: I3f489ac794d342267b7627db1d28315ea4b69db2
Diffstat (limited to 'gnu/home.scm')
0 files changed, 0 insertions, 0 deletions