Infrastructure as Code (IaC) repository for the automated provisioning of my workstation - Dell G15 Ryzen Edition - running Omarchy (Arch Linux). This repository's architecture strictly separates user-level configurations from system binaries and hardware rules, adhering to the principle of least privilege.
- Event-Driven Power Management: Custom ACPI/udev rules combined with a dynamic power manager script to automatically switch between 165Hz/Performance mode (AC/Gaming) and 60Hz/Power-Saver mode (Battery).
- Idempotent Deployment: The bootstrap script can be safely executed multiple times to enforce system state without duplicating data or breaking configurations.
- Zero-Trust Privilege Handling: Automatically drops root privileges to safely install AUR packages (via
yay) and link user-space configs (viastow).
The dotfiles management is split into two isolated domains to prevent privilege escalation and maintain OS integrity:
- User Space (
/user): Managed via GNU Stow. Contains user-level configurations. Using symlinks allows changes to instantly reflect in version control without manual synchronization. - System Space (
/system): Managed via a strict bootstrap script. Files in this domain are injected using physical copies (cp) with hardcodedroot:rootownership, preventing malicious scripts in the user session from altering system behavior.
The bootstrap script is idempotent. It can be safely executed multiple times to apply new system rule updates.
Security Note: The installation script requires
sudostrictly to inject rules into/etc/udev/and binaries into/usr/local/bin/. All user-space operations drop these privileges automatically.
git clone https://github.com/kevinbsr/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
chmod +x install.sh
sudo ./install.shA custom Waybar module is configured to execute waybar-tailscale.sh.
To use it:
- Permissions: Grant user control of the Tailscale daemon without requiring
sudo:sudo tailscale set --operator=$USER
- Usage:
- Left-click: Toggle Tailscale connection.
- Right-click: Select an Exit Node using
walker. - Hover: Display peers, exit node status, and IPs (styled dynamically using the active Omarchy theme).