guix home: Add 'container' command.
authorLudovic Courtès <ludo@gnu.org>
Sun, 13 Mar 2022 21:44:54 +0000 (22:44 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 19 Mar 2022 17:51:09 +0000 (18:51 +0100)
commit094a2cfbe45c104d0da30ff9d975d052ca0c118c
tree3388b84418e7d951e43992e93b683c7e9bbc0420
parentcff9fee82a06f58b10a5b3a7743295c53f7988b8
guix home: Add 'container' command.

* guix/scripts/home.scm (show-help, %options): Add '--network',
'--share', and '--expose'.
(not-config?, user-shell, spawn-home-container): New procedures.
(%default-system-profile): New variable.
(perform-action): Add #:file-system-mappings, #:container-command,
and #:network?; honor them.
(process-action): Adjust accordingly.
(guix-home)[parse-sub-command]: Add "container".
[parse-args]: New procedure.
Use it instead of 'parse-command-line'.
* tests/guix-home.sh: Add tests.
* doc/guix.texi (Declaring the Home Environment): Mention 'guix home
container' as a way to test configuration.
(Invoking guix home): Document it.
doc/guix.texi
guix/scripts/home.scm
tests/guix-home.sh