more setting up sway desktop, this is getting messy but I need to keep moving
This commit is contained in:
parent
cbf055d05e
commit
8f606ed902
14 changed files with 89 additions and 16 deletions
|
@ -1,5 +1,6 @@
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
## Full Arch installation
|
||||||
Add the host to `inventory/hosts` and configure a
|
Add the host to `inventory/hosts` and configure a
|
||||||
`inventory/host_vars/<host>.yaml`
|
`inventory/host_vars/<host>.yaml`
|
||||||
|
|
||||||
|
@ -22,3 +23,6 @@ After logging in as root:
|
||||||
ansible-pull -U https://git.klowner.com/mark/ansible-workstation
|
ansible-pull -U https://git.klowner.com/mark/ansible-workstation
|
||||||
```
|
```
|
||||||
*NOTE: neither root password or host name is needed here*
|
*NOTE: neither root password or host name is needed here*
|
||||||
|
|
||||||
|
## System environment provisioning
|
||||||
|
*TODO*
|
||||||
|
|
4
inventory/group_vars/all.yaml
Normal file
4
inventory/group_vars/all.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
dotfiles_url: https://git.klowner.com/mark/dotfiles/raw/branch/main/bin/dotfiles
|
||||||
|
dotfiles_user: mark
|
||||||
|
dotfiles_shell: zsh
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
ansible_host: 10.4.0.49
|
ansible_host: 10.4.0.55
|
||||||
|
|
||||||
base_root_swap_mib: "{{ 1024 * 16 }}"
|
base_root_swap_mib: "{{ 1024 * 16 }}"
|
||||||
base_root_efi_mib: 512
|
base_root_efi_mib: 512
|
||||||
|
|
|
@ -14,3 +14,4 @@
|
||||||
hosts: base
|
hosts: base
|
||||||
roles:
|
roles:
|
||||||
- software
|
- software
|
||||||
|
- dotfiles
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
- linux-lts
|
- linux-lts
|
||||||
- linux-lts-headers
|
- linux-lts-headers
|
||||||
- openssh
|
- openssh
|
||||||
|
- zsh
|
||||||
when: not existing_pacstrap.stat.exists
|
when: not existing_pacstrap.stat.exists
|
||||||
|
|
||||||
- name: archinstall | install os | copy pacman mirrorlist
|
- name: archinstall | install os | copy pacman mirrorlist
|
||||||
|
|
4
roles/dotfiles/defaults/main.yaml
Normal file
4
roles/dotfiles/defaults/main.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
dotfiles_user: "{{ user }}"
|
||||||
|
dotfiles_url: "{{ url }}"
|
||||||
|
dotfiles_shell: bash
|
13
roles/dotfiles/tasks/main.yaml
Normal file
13
roles/dotfiles/tasks/main.yaml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- name: dotfiles | set user shell
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: "{{ dotfiles_user }}"
|
||||||
|
shell: "/usr/bin/{{ dotfiles_shell }}"
|
||||||
|
|
||||||
|
- name: dotfiles | install from remote source
|
||||||
|
become: true
|
||||||
|
become_user: "{{ dotfiles_user }}"
|
||||||
|
shell:
|
||||||
|
cmd: "curl -o- -L {{ dotfiles_url }} | {{ dotfiles_shell }}"
|
||||||
|
creates: "/home/{{ dotfiles_user }}/.dotfiles"
|
||||||
|
register: dotfiles
|
1
roles/software/defaults/main.yaml
Normal file
1
roles/software/defaults/main.yaml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
desktop_user: mark
|
|
@ -1,2 +1,3 @@
|
||||||
- import_tasks: software_desktop.yaml
|
# - import_tasks: software/minimal.yaml
|
||||||
- import_tasks: software_gfx.yaml
|
- import_tasks: software/desktop.yaml
|
||||||
|
# - import_tasks: software/graphics.yaml
|
||||||
|
|
43
roles/software/tasks/software/desktop.yaml
Normal file
43
roles/software/tasks/software/desktop.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
- name: install desktop packages
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
name:
|
||||||
|
- firefox
|
||||||
|
- greetd-tuigreet
|
||||||
|
- grim
|
||||||
|
- kitty
|
||||||
|
- podman
|
||||||
|
- python-pywal
|
||||||
|
- sway
|
||||||
|
- telegram-desktop
|
||||||
|
- thunar
|
||||||
|
- waybar
|
||||||
|
- wofi
|
||||||
|
- xdg-user-dirs
|
||||||
|
|
||||||
|
- name: install AUR packages
|
||||||
|
become: true
|
||||||
|
become_user: "{{ desktop_user }}"
|
||||||
|
shell: >-
|
||||||
|
paru -Sy --noconfirm {{ packages | join(' ') }}
|
||||||
|
vars:
|
||||||
|
packages:
|
||||||
|
- dracula-gtk-theme-full
|
||||||
|
- ttf-envy-code-r
|
||||||
|
|
||||||
|
- name: greetd | configure | use tuigreet
|
||||||
|
ansible.builtin.lineinfile:
|
||||||
|
path: /etc/greetd/config.toml
|
||||||
|
regexp: '^command ='
|
||||||
|
line: command = "tuigreet --cmd sway"
|
||||||
|
|
||||||
|
- name: greetd | enable systemd unit
|
||||||
|
systemd:
|
||||||
|
name: greetd
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
- name: sway | reload if running
|
||||||
|
become: true
|
||||||
|
become_user: "{{ desktop_user }}"
|
||||||
|
shell: pidof sway && SWAYSOCK=$(ls /run/user/*/sway-ipc.*.sock | head -n 1) swaymsg reload
|
||||||
|
|
7
roles/software/tasks/software/graphics.yaml
Normal file
7
roles/software/tasks/software/graphics.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: install graphics packages
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
name:
|
||||||
|
- blender
|
||||||
|
- krita
|
||||||
|
- inkscape
|
7
roles/software/tasks/software/minimal.yaml
Normal file
7
roles/software/tasks/software/minimal.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
- name: install minimal packages
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
name:
|
||||||
|
- eza
|
||||||
|
- fzf
|
||||||
|
- ripgrep
|
|
@ -1,8 +0,0 @@
|
||||||
- name: install desktop packages
|
|
||||||
package:
|
|
||||||
- bzip2
|
|
||||||
- grim
|
|
||||||
- podman
|
|
||||||
- sway
|
|
||||||
- telegram-desktop
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
- name: install graphics packages
|
|
||||||
package:
|
|
||||||
- blender
|
|
||||||
- krita
|
|
||||||
- inkscape
|
|
Loading…
Add table
Add a link
Reference in a new issue