home: 'reconfigure' checks for potential downgrades.

* guix/scripts/home.scm (show-help, %options): Add "--allow-downgrades".
(%default-options): Remove 'build-mode'; add 'validate-reconfigure'.
(perform-action): Add #:validate-reconfigure.  Call
'check-forward-update' when ACTION is 'reconfigure.
(process-action): Pass #:validate-reconfigure to 'perform-action'.
* gnu/home/services.scm (home-provenance): Export.
* doc/guix.texi (Invoking guix home): Document '--allow-downgrades'.
This commit is contained in:
Ludovic Courtès 2022-01-23 16:21:03 +01:00
parent 50f7402c6a
commit 23ccfd3840
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 36 additions and 12 deletions

View file

@ -43,6 +43,7 @@
home-provenance-service-type
fold-home-service-types
home-provenance
%initialize-gettext)