examples: emacs: Load packages list in the absolute path.

This commit is contained in:
Hilton Chain committed 2026-06-15 22:43:20 +08:00
1 parent 40a0e474c7
commit a1452f76ac
1 file changed
+2 -2
+2 -2
View File
@@ -2,13 +2,13 @@
TOP_DIR="$(dirname "$(realpath "$0")")" TOP_DIR="$(dirname "$(realpath "$0")")"
# Install packages. # Install packages.
echo ' echo "
(use-modules (guix packages) (use-modules (guix packages)
(guix scripts install)) (guix scripts install))
(apply guix-install (apply guix-install
(map package-name (map package-name
(load "packages")))' | (load \"$TOP_DIR/packages\")))" |
guix repl --type=machine guix repl --type=machine
# Install configuration file. # Install configuration file.