From: "Ludovic Courtès" <ludo@gnu.org>
To: Xinglu Chen <public@yoctocell.xyz>
Cc: 51657-done@debbugs.gnu.org, Andrew Tropin <andrew@trop.in>
Subject: bug#51657: [PATCH] scripts: home: Make ‘guix home import’ populate ‘home-configuration.scm
Date: Wed, 17 Nov 2021 16:44:42 +0100 [thread overview]
Message-ID: <87bl2ivlat.fsf@gnu.org> (raw)
In-Reply-To: <14ec6984221fa50f5720db519cb0f06db4dd478b.1636283518.git.public@yoctocell.xyz> (Xinglu Chen's message of "Sun, 07 Nov 2021 12:13:32 +0100")
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
Hello,
Xinglu Chen <public@yoctocell.xyz> skribis:
> * guix/scripts/home.scm (process-command): Populate ‘home-configuration.scm’
> in the destination directory instead of printing to stdout.
> * doc/guix.texi (Declaring the Home Environment): Adjust accordingly.
> (Invoking guix home): Likewise.
Applied with the changes below. This is looking nice now!
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1570 bytes --]
diff --git a/doc/guix.texi b/doc/guix.texi
index 5ce18fdf8a..59ceb4477a 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -36673,7 +36673,7 @@ environment. Note that not every home service that exists is supported
@example
$ guix home import ~/guix-config
-/home/alice/guix-config has been populated with all the configuration files of your home environment. Run 'guix home reconfigure /home/alice/guix-config/home-configuration.scm' to make it take effect.
+guix home: '/home/alice/guix-config' populated with all the Home configuration files
@end example
@end table
diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index 118e66895e..afc7d8b39c 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -277,9 +277,12 @@ (define-syntax-rule (with-store* store exp ...)
(call-with-output-file
(string-append destination "/home-configuration.scm")
(cut import-manifest manifest destination <>))
- (format #t (G_ "~a/ has been populated with all the configuration files \
-of your home environment. Run 'guix home reconfigure ~a/home-configuration.scm' \
-to make it take effect.") destination destination)))
+ (info (G_ "'~a' populated with all the Home configuration files~%")
+ destination)
+ (display-hint (format #f (G_ "\
+Run @command{guix home reconfigure ~a/home-configuration.scm} to effectively
+deploy the home environment described by these files.\n")
+ destination))))
((describe)
(match (generation-number %guix-home)
(0
prev parent reply other threads:[~2021-11-17 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 11:13 [bug#51657] [PATCH] scripts: home: Make ‘guix home import’ populate ‘home-configuration.scm Xinglu Chen
2021-11-17 15:44 ` Ludovic Courtès [this message]
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=87bl2ivlat.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=51657-done@debbugs.gnu.org \
--cc=andrew@trop.in \
--cc=public@yoctocell.xyz \
/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.