diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-10-30 12:42:27 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-10-31 00:51:05 +0200 |
commit | d5eb05f01ea59da8435e9df4f15835edbb31a30e (patch) | |
tree | 6a5d9a5f7bb39228dced2cb956138720e87463e0 /guix/scripts/import/hackage.scm | |
parent | cf0abb6cfe5222796b676fe2d1c7667fb396ce14 (diff) |
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 'guix/scripts/import/hackage.scm')
0 files changed, 0 insertions, 0 deletions