summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorXinglu Chen <public@yoctocell.xyz>2021-10-30 12:42:27 +0200
committerLudovic Courtès <ludo@gnu.org>2021-10-31 00:51:05 +0200
commitd5eb05f01ea59da8435e9df4f15835edbb31a30e (patch)
tree6a5d9a5f7bb39228dced2cb956138720e87463e0 /HACKING
parentcf0abb6cfe5222796b676fe2d1c7667fb396ce14 (diff)
downloadguix-patches-d5eb05f01ea59da8435e9df4f15835edbb31a30e.tar
guix-patches-d5eb05f01ea59da8435e9df4f15835edbb31a30e.tar.gz
guix home: import: Make the user to specify a destination directory.
Copy the appropriate the relevant configuration files to the destination directory, and call ‘local-file’ on them. Without this, ‘guix home import’ will generate a service declaration like this (service home-bash-service-type (home-bash-configuration (bashrc (list (slurp-file-gexp (local-file "/home/yoctocell/.bashrc")))))) but when running ‘guix home reconfigure’, the ~/.bashrc file would be moved, so when running ‘guix home reconfigure’ for the second time, it would read the ~/.bashrc which is itself a symlink to a file the store. * guix/scripts/home/import.scm (generate-bash-module+configuration): Take ‘destination-directory’ parameter (modules+configurations): Copy the user’s configuration file to ‘%destination-directory’. * guix/scripts/home.scm (process-command): Adjust accordingly; create ‘destination’ if it doesn’t exist. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions