1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-12 10:36:06 +02:00
eoli3n-dotfiles/README.md

98 lines
2.4 KiB
Markdown
Raw Normal View History

# Sway Acid Dark
2016-03-29 20:44:38 +02:00
2019-12-01 16:35:24 +01:00
[![Build Status](https://travis-ci.org/eoli3n/dotfiles.svg?branch=master)](https://travis-ci.org/eoli3n/dotfiles)
2017-12-26 01:15:08 +01:00
2020-05-11 16:52:19 +02:00
**Sway fish pure waybar neovim**
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/sway.png)
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
**Tiny irc client**
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/irc.png)
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
**Firefox/Tabliss Wofi**
2016-09-17 18:35:54 +02:00
2020-05-11 16:52:19 +02:00
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/ff.png)
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
**Connman/Thunar GTK Theme**
2017-12-22 13:25:54 +01:00
2020-05-11 16:52:19 +02:00
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/gtk.png)
2017-12-23 22:44:23 +01:00
2020-05-13 22:02:27 +02:00
### Why Ansible ?
2017-12-29 02:55:10 +01:00
2020-05-13 22:02:27 +02:00
- Modularity: [Roles](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html) as modules.
- Factorization: It uses [jinja2](https://docs.ansible.com/ansible-container/container_yml/template.html) templating engine.
- Simplicity: No agent, only SSH, available via pip.
- Flexibility: Push your dotfiles from/to any hosts.
- Toolbox: Dry-run mode, diff mode, secrets encryption, tags...
2016-12-27 20:05:23 +01:00
2020-05-13 22:02:27 +02:00
### Test
2019-12-01 16:29:03 +01:00
2020-05-13 22:02:27 +02:00
See ``vagrant/*/README.md`` and ``docker/*/README.md``.
2019-12-01 16:39:30 +01:00
2020-05-12 12:46:46 +02:00
### How to
2017-12-29 03:00:53 +01:00
2020-05-13 22:04:37 +02:00
**Use carefully** backup your home before using !
You should use ``--check`` to dry-run and ``--diff`` first.
2019-12-01 16:29:03 +01:00
2020-05-13 22:02:27 +02:00
Check details in ``roles/*/README.md``.
2019-12-01 16:29:03 +01:00
2020-05-13 22:03:34 +02:00
###### 1. Fork Me!
2020-05-13 22:02:27 +02:00
2020-05-13 22:03:34 +02:00
###### 2. Clone your repo on your master host
2020-05-13 22:02:27 +02:00
Use recursive mode to get aur ansible module for Archlinux.
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
git clone --recursive https://github.com/*/dotfiles
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:03:34 +02:00
###### 3. Generate hosts file
2020-05-13 22:02:27 +02:00
2019-12-01 16:29:03 +01:00
``hosts`` file is defaultly gitignored.
```
cd dotfiles
2020-05-12 12:46:46 +02:00
cp hosts.template hosts
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
Add your hosts in section
- *cli*: install only cli tools
- *desktop*: install graphic environment
2017-12-29 02:55:10 +01:00
2020-05-13 22:02:27 +02:00
Define which user to configure with *ansible_user*.
You can't use **root** account for host in *desktop* section.
Users needs to be sudoers.
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
[cli]
2019-12-01 16:29:03 +01:00
server1 ansible_user=root
[desktop]
2020-05-13 22:02:27 +02:00
host1 ansible_user=user
2019-12-01 16:29:03 +01:00
host2 ansible_user=user2
```
2020-05-13 22:02:27 +02:00
If you just want to use it on local host
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
[desktop]
localhost ansible_connection=local ansible_user=user
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:03:34 +02:00
###### 4. Configure SSH connexions
2019-12-01 16:29:03 +01:00
2020-05-13 22:02:27 +02:00
Push your SSH public key on all your ``users@hosts``
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
ssh-copy-id -i path/to/ssh/key.pub user@host
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:03:34 +02:00
###### 5. (Dry)Run
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
ansible-playbook install.yml -CD
ansible-playbook install.yml
2019-12-01 16:29:03 +01:00
```
2020-05-13 22:02:27 +02:00
To configure cli tools for root on desktop hosts
2019-12-01 16:32:57 +01:00
```
2020-05-13 22:02:27 +02:00
ansible-playbook install.yml -b -K
2019-12-01 16:29:03 +01:00
```
2020-05-12 12:46:46 +02:00
### Previously
2017-01-15 12:55:50 +01:00
* [i3-gaps Dark Solarized](https://github.com/eoli3n/dotfiles/tree/zsh-agnoster-solarized)
2020-05-11 16:59:50 +02:00
* [i3-gaps Acid Dark](https://github.com/eoli3n/dotfiles/tree/i3-gaps-acid-dark)