1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-29 17:18:13 +01:00
eoli3n-dotfiles/README.md

109 lines
2.8 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-12 12:46:46 +02:00
### How to
2017-12-29 03:00:53 +01:00
2020-05-13 22:06:57 +02:00
**Use carefully**, backup your home before using !
2020-05-14 00:24:31 +02:00
You should use ``--check`` and ``--diff`` to dryrun 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-11-22 20:00:56 +01:00
This project only manages dotfiles.
2021-05-23 13:02:30 +02:00
To install required packages, use [arch-config](https://github.com/eoli3n/arch-config/blob/master/ansible/roles/desktop/tasks/main.yml), [void-config](https://github.com/eoli3n/void-config/blob/master/ansible/roles/desktop/tasks/main.yml) or [nix-config](https://github.com/eoli3n/nix-config/tree/master/modules/includes/).
2020-11-22 20:00:11 +01:00
2020-05-13 22:06:57 +02:00
##### 1. Fork Me!
2020-05-13 22:02:27 +02:00
2020-05-13 22:06:57 +02:00
##### 2. Clone your repo
2020-05-13 22:02:27 +02:00
2019-12-01 16:29:03 +01:00
```
2020-05-14 13:09:50 +02:00
git clone https://github.com/*/dotfiles
2019-12-01 16:29:03 +01:00
```
2020-05-14 11:32:43 +02:00
Then, configure desktop environment in [group_vars/all.yml](group_vars/all.yml).
2020-05-13 22:06:57 +02:00
##### 3. Configure inventory
2020-05-13 22:02:27 +02:00
2020-05-14 00:23:03 +02:00
Create inventory file from template.
2019-12-01 16:29:03 +01:00
```
cd dotfiles
2020-05-12 12:46:46 +02:00
cp hosts.template hosts
2019-12-01 16:29:03 +01:00
```
2020-05-14 00:23:03 +02:00
Add your hostnames in section:
2020-11-22 20:00:11 +01:00
- ***cli***: only cli dotfiles
- ***desktop***: cli dotfiles + desktop environment
2020-05-14 00:23:03 +02:00
Define which user will get configurations with *ansible_user* var.
###### a. localhost run
2019-12-01 16:29:03 +01:00
```
2020-05-14 11:09:02 +02:00
[cli]
2019-12-01 16:29:03 +01:00
[desktop]
2020-05-15 18:03:40 +02:00
localhost ansible_connection=local
2019-12-01 16:29:03 +01:00
```
2020-05-14 00:23:03 +02:00
###### b. multiple hosts run
2020-05-15 18:03:40 +02:00
Note: *desktop* hosts **can't use root**.
2019-12-01 16:29:03 +01:00
```
2020-05-14 00:23:03 +02:00
[cli]
server1 ansible_user=root
2020-05-13 22:02:27 +02:00
[desktop]
2020-05-14 00:23:03 +02:00
host1 ansible_user=user
host2 ansible_user=user2
2019-12-01 16:29:03 +01:00
```
2020-05-14 11:30:57 +02:00
##### 4. Configure SSH
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-14 11:30:57 +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-15 18:03:40 +02:00
For *desktop* hosts, if ``ansible_user`` is sudoer, to install cli tools for *root*, use:
2019-12-01 16:32:57 +01:00
```
2020-05-15 18:03:40 +02:00
ansible-playbook install.yml -l host1 -b -K
2019-12-01 16:29:03 +01:00
```
2020-05-14 00:23:38 +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)