Compare commits

...

2 Commits

Author SHA1 Message Date
Adam Mohammed
c571819711 Add file to install profiles 2024-05-29 11:52:36 -04:00
Adam Mohammed
d3c8248137 Add a base manifest 2024-05-29 11:43:57 -04:00
2 changed files with 37 additions and 0 deletions

10
base.scm Normal file
View File

@@ -0,0 +1,10 @@
(specifications->manifest
(list "aspell"
"xsel"
"util-linux"
"tmux"
"nss-certs"
"nordic-theme"
"fzf"
"direnv"
"glibc-locales"))

27
install.sh Normal file
View File

@@ -0,0 +1,27 @@
export GUIX_EXTRA_PROFILES="$HOME/.guix-extra-profiles"
mkdir -p $GUIX_EXTRA_PROFILES/emacs-lib
guix install -m base.scm
guix package -m $PWD/emacs-manifest.scm --profiles=$GUIX_EXTRA_PROFILES/emacs-lib/emacs-lib
cat <<EOF
# Add this to the bashrc to source the emacs profile
for i in "\${GUIX_EXTRA_PROFILES}/emacs-lib" do
profile="\${i}/\$(basename \$i)"
# guix /etc/profiles expect GUIX_PROFILE to be set properly
GUIX_PROFILE=\$profile
. \$GUIX_PROFILE/etc/profile
unset profile
end
# Restore default profile
GUIX_PROFILE="\$HOME/.guix-profile"
EOF