Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2026-03-22 22:51:32 +01:00
commit 222062c1a4
17 changed files with 1154 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# tasks file for dotfiles
- name: Ensure stow is installed
become: true
pacman:
name:
- stow
state: present
- name: Remove existing config files before stowing
shell: |
[ -L ~/.config/hypr/hyprland.conf ] || rm -f ~/.config/hypr/hyprland.conf
[ -L ~/.config/starship ] || rm -rf ~/.config/starship
[ -L ~/.config/zellij ] || rm -rf ~/.config/zellij
changed_when: false
- name: Create symlinks with stow
shell: |
cd {{ lookup('env', 'HOME') }}/archsetup/dotfiles
stow -t ~ hypr starship zellij
args:
executable: /bin/bash
creates: "{{ lookup('env', 'HOME') }}/.config/starship"
chdir: "{{ lookup('env', 'HOME') }}/archsetup/dotfiles"