2021-12-09 18:30:13 +01:00
# dotfiles v2
2021-07-18 02:07:34 +02:00
2024-01-26 18:00:00 +01:00
This is the continuation of [my old dotfiles ](/folliehiyuki/dotfiles ) without all the Xorg stuff I don't use.
2021-11-05 20:50:48 +01:00
2024-02-15 18:00:00 +01:00
## 🧰 Usage
2021-11-15 15:57:29 +01:00
2021-12-20 19:33:08 +01:00
```bash
2024-02-15 18:00:00 +01:00
# Install non-core Ansible modules if only ansible-core package is installed
2022-08-22 16:39:26 +02:00
ansible-galaxy collection install -r requirements/collections.yml
2024-02-15 18:00:00 +01:00
# Create an encrypted vars file to store secret variables
# (see "Variables" section below)
mkdir -p host_vars/$HOSTNAME
touch host_vars/$HOSTNAME/secrets.yml
ansible-vault encrypt host_vars/$HOSTNAME/secrets.yml
ansible-vault edit host_vars/$HOSTNAME/secrets.yml
2021-12-20 19:33:08 +01:00
# Run the playbook
2024-02-15 18:00:00 +01:00
ansible-playbook playbooks/system.yml
2022-08-22 16:39:26 +02:00
ansible-playbook playbooks/dotfiles.yml
2021-11-15 15:57:29 +01:00
```
2024-02-15 18:00:00 +01:00
## Variables
2021-12-20 19:33:08 +01:00
2024-02-15 18:00:00 +01:00
Beside variables defined in [group_vars/all/ ](./group_vars/all ), these are also available:
- `vault_password` (required): the password of the created user (used by [system.yml ](./playbooks/system.yml ) playbook)
- `pixiv_refresh_token` : in-browser refresh token used in gallery-dl to access Pixiv
2023-01-08 05:00:00 +01:00
- `google_calendar_id` , `google_oauth_client_id` , `google_oauth_client_secret` : used in calcurse CalDAV config
2023-01-28 05:00:00 +01:00
- `user_ssh_key_path` : configure Git to sign commits with this SSH key
2023-01-08 05:00:00 +01:00
2024-02-15 18:00:00 +01:00
## Playbooks
2021-11-05 20:50:48 +01:00
2024-02-15 18:00:00 +01:00
- [system.yml ](./playbooks/system.yml ) should be the first to be run. Needs to be run as `root` .
- [dotfiles.yml ](./playbooks/dotfiles.yml ) configures `$HOME` directory.
- [extend.yml ](./playbooks/extend.yml ) contains additional tasks unrelated to dotfiles and system deployment, but useful (for me).
## 📓 Notes
2022-02-06 15:15:38 +01:00
2024-02-15 18:00:00 +01:00
The playbooks gear toward my Linux distribution of choice - [Alpine Linux ](https://alpinelinux.org ). Tasks included in them might not work on other distributions (e.g. `apk` tasks)
2021-11-05 20:50:48 +01:00
2021-12-09 18:30:13 +01:00
## 🌟 Credits
2021-11-05 20:50:48 +01:00
2021-11-07 09:41:20 +01:00
- [eoli3n/dotfiles ](https://github.com/eoli3n/dotfiles )
2022-01-10 19:54:42 +01:00
- [samhh/dotfiles ](https://github.com/samhh/dotfiles )
2022-02-23 16:16:09 +01:00
- [zsugabubus/dotfiles ](https://github.com/zsugabubus/dotfiles )
2022-03-05 09:13:46 +01:00
- [sircmpwn/dotfiles ](https://git.sr.ht/~sircmpwn/dotfiles )
2022-05-29 09:55:52 +02:00
- [rjarry/dotfiles ](https://git.sr.ht/~rjarry/dotfiles )
2023-04-01 19:00:00 +02:00
- [wangl-cc/dotfiles ](https://github.com/wangl-cc/dotfiles )
2021-11-05 20:50:48 +01:00
2021-12-09 18:30:13 +01:00
## 📄 License
2021-11-05 20:50:48 +01:00
MIT