Improvements when installing the new machine

This commit is contained in:
2026-04-15 13:35:39 +02:00
parent d11455427c
commit 38e8ea43cd
5 changed files with 15 additions and 27 deletions
+3 -1
View File
@@ -238,8 +238,10 @@ export TEXMFHOME=$HOME/.local/share/texmf
*** Linkding *** Linkding
#+begin_src bash #+begin_src bash
if [ "$(hostnamectl hostname)" = "ldehaeze" ]; then
export LINKDING_URL=`pass nas/linkding_url` export LINKDING_URL=`pass nas/linkding_url`
export LINKDING_TOKEN=`pass nas/linkding_token` export LINKDING_TOKEN=`pass nas/linkding_token`
fi
#+end_src #+end_src
*** Restic *** Restic
@@ -258,7 +260,7 @@ export PATH
** Automatically run =startx= ** Automatically run =startx=
#+begin_src bash #+begin_src bash
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then if [ -z "${DISPLAY}" ] && [ -n "${XDG_VTNR}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx exec startx
fi fi
#+end_src #+end_src
+7 -14
View File
@@ -33,29 +33,22 @@ echo "==> Emacs packages"
paru -S --needed emacs aspell aspell-en aspell-fr paru -S --needed emacs aspell aspell-en aspell-fr
#+end_src #+end_src
** Doom Emacs
#+begin_src bash
echo "==> Installing Doom Emacs"
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
"${DOOM}" install --no-config
#+end_src
** Tangle Configuration ** Tangle Configuration
Tangle =doom.org= to generate =config.el=, =init.el= and =packages.el=: Tangle =doom.org= to generate =config.el=, =init.el= and =packages.el=:
#+begin_src bash #+begin_src bash
echo "==> Tangling doom.org" echo "==> Tangling doom.org"
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/doom.org\")" \ mkdir ${HOME}/.config/doom
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/doom.org\")" emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/doom.org\")"
#+end_src #+end_src
** Sync ** Doom Install
#+begin_src bash #+begin_src bash
echo "==> Running doom sync" echo "==> Installing Doom Emacs"
"${DOOM}" sync git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
"${DOOM}" install
#+end_src #+end_src
* Introduction and Resources * Introduction and Resources
@@ -3210,7 +3203,7 @@ Provides nice functions such as:
;;nim ; python + lisp at the speed of c ;;nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!" ;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel ;;ocaml ; an objective camel
(org +pretty +roam2 +hugo +noter) ; organize your plain life in plain text (org +pretty +roam +hugo +noter) ; organize your plain life in plain text
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;graphviz ; diagrams for confusing yourself even more ;;graphviz ; diagrams for confusing yourself even more
+1 -4
View File
@@ -50,8 +50,7 @@ set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles" DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() { tangle() {
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/$1\")" \ emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
} }
#+end_src #+end_src
@@ -69,10 +68,8 @@ paru -S --needed \
kitty \ kitty \
bash bash-completion \ bash bash-completion \
zoxide \ zoxide \
nerd-fonts-hack noto-fonts-emoji \
xorg-xrandr arandr \ xorg-xrandr arandr \
xautocfg \ xautocfg \
arc-gtk-theme xcursor-breeze \
feh xwallpaper feh xwallpaper
#+end_src #+end_src
+1 -4
View File
@@ -4,8 +4,7 @@ set -euo pipefail
DOTFILES="${HOME}/.config/literate-dotfiles" DOTFILES="${HOME}/.config/literate-dotfiles"
tangle() { tangle() {
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/$1\")" \ emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/$1\")"
} }
echo "==> Desktop packages" echo "==> Desktop packages"
@@ -19,10 +18,8 @@ paru -S --needed \
kitty \ kitty \
bash bash-completion \ bash bash-completion \
zoxide \ zoxide \
nerd-fonts-hack noto-fonts-emoji \
xorg-xrandr arandr \ xorg-xrandr arandr \
xautocfg \ xautocfg \
arc-gtk-theme xcursor-breeze \
feh xwallpaper feh xwallpaper
echo "==> Tangling desktop configs" echo "==> Tangling desktop configs"
+1 -2
View File
@@ -36,8 +36,7 @@ Tangle =vim.org= to generate =~/.config/nvim/init.vim=:
#+begin_src bash #+begin_src bash
echo "==> Tangling vim.org" echo "==> Tangling vim.org"
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/vim.org\")" \ emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/vim.org\")"
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/vim.org\")"
#+end_src #+end_src
** Install Plugins ** Install Plugins