mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
19 lines
426 B
Bash
Executable File
19 lines
426 B
Bash
Executable File
#!/bin/sh
|
|
TOP_DIR="$(dirname "$(realpath "$0")")"
|
|
|
|
# Install packages.
|
|
echo "
|
|
(use-modules (guix packages)
|
|
(guix scripts install))
|
|
|
|
(apply guix-install
|
|
(map package-name
|
|
(load \"$TOP_DIR/packages\")))" |
|
|
guix repl --type=machine
|
|
|
|
# Install configuration file.
|
|
if [ ! -f ~/.config/emacs/init.el ]
|
|
then
|
|
install -D -mode=0644 --target-directory="$HOME/.config/emacs" "$TOP_DIR/init.el"
|
|
fi
|