Skip to content

klarkc/dotfiles

Repository files navigation

Dotfiles

Optioned Linux for a dev environment

git clone --no-checkout https://github.com/klarkc/dotfiles 
mv dotfiles/.git ~
rm -r dotfiles

⚠ Next command will replace current home files with repo files (backup first!)

git checkout main

Features

Aliases

  • l: ls -l
  • ll: ls -la
  • lt: ls -lt

Optional Features

Supported setups

Below are the supported distro setups

Arch Linux with XMonad

Dependencies

pacman -Syu yay
yay -Syu git gvim alacritty-ligature-git qt5-styleplugins nix ttf-fira-code noto-fonts-emoji lsd gsettings xconf picom xorg-xmodmap gnome-session gnome-settings-daemon notification-daemon xmonad xmonad-contrib xorg-xsetroot feh the_silver_searcher
sudo chmod +s .local/bin/pacman-*
systemctl enable --now nix-daemon.socket

Below dependencies are not mandatory (see Optional Features)

yay -Syu git docker pacreport yay-cache-cleanup-hook sunshine pacman-mirrorup bat git-delta ripgrep nyxt handlr spotifyd python-openai oterm ollama-cuda shell-gpt
systemctl enable --now docker.socket

Build

make

Installation

nix profile install .
systemctl --user daemon-reload
systemctl --user enable lorri.socket

Below steps are not mandatory (see Optional Features)

systemctl enable --now pacman-mirrorup.timer
systemctl --user enable docker-cleanup.timer
systemctl --user enable home-cleanup.timer
systemctl --user enable nix-cleanup.timer
systemctl --user enable pacreport.timer
systemctl --user enable --now sunshine.service
systemctl --user enable --now spotifyd.service
systemctl --user enable --now ollama.service

Add in /usr/share/xsessions/gnome-xmonad.desktop:

[Desktop Entry]
Name=GNOME Xmonad
Exec=gnome-session --systemd-service --session=gnome-xmonad

Add in /etc/gdm/custom.conf:

[security]
AllowCustomSessions=true

Add in .bashrc_override (replace hackme with your api key):

export OPENAI_API_KEY="hackme"

Download the llama models in vim:

:VLMAPull codellama
:VLMAPull llama3

Customization

To customize a .dotfile you can write a corresponding .dotfile_override.