Skip to content

Commit dfb4b17

Browse files
committed
Merge remote-tracking branch 'upstream/master' into update_from_eoli3n_arch_config
2 parents 8ff2578 + fe88200 commit dfb4b17

File tree

11 files changed

+72
-11
lines changed

11 files changed

+72
-11
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: check-yaml
6+
- id: trailing-whitespace
7+
args: [--markdown-linebreak-ext=md]
8+
- repo: https://github.com/shellcheck-py/shellcheck-py
9+
rev: v0.7.2.1
10+
hooks:
11+
- id: shellcheck
12+
- repo: local
13+
hooks:
14+
- id: ansible-syntax-check
15+
name: Ansible syntax check
16+
entry: "ansible/contrib/syntax-check.sh"
17+
pass_filenames: no
18+
types_or: [yaml, jinja]
19+
language: script

ansible/contrib/syntax-check.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
# Workaround to detect aur submodule library with pre-commit
3+
4+
CURRENT_DIR=$(dirname "$0")
5+
cd "$CURRENT_DIR"/.. || exit 1
6+
ansible-playbook --syntax-check install-zfs.yml

ansible/install-zfs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
- { role: containers, tags: containers }
3232
- { role: recovery, tags: recovery }
3333
- { role: zfs, tags: zfs }
34+
- { role: printers, tags: printers }

ansible/roles/base/tasks/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
skip_installed: true
66
name:
77
- ttf-impallari-cabin-font # cv font
8+
- ttf-ms-fonts # microsoft fonts
89
- glow # render markdown cli
910
- zrepl # zfs snapshot manager
1011

@@ -14,6 +15,7 @@
1415
# Main
1516
- ttf-jetbrains-mono # main font
1617
- noto-fonts # unicode font
18+
- noto-fonts-emoji # emojis
1719
# Shell
1820
- fish # powerful shell
1921
- starship # cross-shell prompt
@@ -51,12 +53,13 @@
5153
- wget # downloader
5254
- bind-tools # dns tools
5355
- openbsd-netcat # network utility
54-
- speedtest-cli #
56+
- speedtest-cli #
5557
# Utils
5658
- cronie # Scheduler
5759
- at # Scheduler
5860
- borgbackup # backup utility
5961
- borgmatic # backup utility automation
62+
- pwgen # random password generator
6063
- lsd # improved ls command
6164
- rsync # sync tool
6265
- rclone # sync tool

ansible/roles/desktop/tasks/main.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- wofi # rofi for wayland
1616
- swayidle
1717
- xdg-user-dirs
18+
- xdg-desktop-portal-wlr
1819
state: present
1920

2021
- name: install video packages
@@ -60,9 +61,10 @@
6061
- lollypop # music player
6162
- lxappearance # theme manager
6263
- mpv # video player
63-
- thunar # file manager
64+
- nemo # file manager
6465
- tumbler # thumbnailer
65-
- openvpn
66+
- openvpn # vpn client
67+
- openconnect # globalprotect vpn client
6668
- playerctl # music player cli controller
6769
- rdesktop # remote desktop client
6870
- steam # games manager
@@ -74,7 +76,7 @@
7476
- variety # random backgrounds
7577
- papirus-icon-theme # icon theme
7678
- gnome-themes-extra # gtk themes
77-
- x2goclient
79+
#- x2goclient
7880
- youtube-dl
7981
- gopass # password manager
8082
state: present
@@ -93,11 +95,11 @@
9395
skip_installed: true
9496
name:
9597
- adapta-gtk-theme #https://github.com/Alexays/Waybar/issues/515
96-
- equilux-theme
98+
- equilux-theme
9799
- wdisplays-git # arandr for wayland
98100
- wf-recorder-git # screen recorder for wayland
99101
- grimshot-git # grim+slurp wrapper
100-
- swaylock-fancy-git # locker for wayland
102+
- waypipe # wayland ssh -X
101103
- wob # bars for wayland
102104
- connman-gtk # connman gtk gui
103105
#- gnome-ssh-askpass2 # ssh askpass gui
@@ -112,4 +114,23 @@
112114
- tiny-irc-client-git
113115
- starleaf-breeze
114116
- swappy # screenshot editor
115-
- senpai # irc client for soju
117+
- senpai-irc # irc client for soju
118+
- rbenv # ruby env manager
119+
#- phockup # picture sorting tool
120+
121+
- name: test swaylock-fancy
122+
stat:
123+
path: /bin/swaylock-fancy
124+
register: swaylock
125+
126+
- name: clone swaylock-fancy
127+
git:
128+
repo: https://github.com/eoli3n/swaylock-fancy
129+
dest: /tmp/swaylock-fancy
130+
when: not swaylock.stat.exists
131+
132+
- name: install swaylock-fancy
133+
shell: make install
134+
args:
135+
chdir: /tmp/swaylock-fancy
136+
when: not swaylock.stat.exists

ansible/roles/flatpak/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@
4040
--filesystem=~/img:ro \
4141
--filesystem=~/downloads:ro \
4242
--filesystem=~/share:ro
43+
44+
- name: zoom screen sharing
45+
shell : |
46+
flatpak override --env=XDG_CURRENT_DESKTOP=GNOME us.zoom.Zoom

ansible/roles/pacman/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
path: /etc/pacman.conf
1414
regexp: '#CheckSpace'
1515
line: 'CheckSpace'
16+
- lineinfile:
17+
path: /etc/pacman.conf
18+
regexp: '#VerbosePkgLists'
19+
line: 'VerbosePkgLists'
1620
- lineinfile:
1721
path: /etc/pacman.conf
1822
regexp: '#ILoveCandy'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: enable cups
33
systemd:
4-
name: org.cups.cupsd.service
4+
name: cups
55
state: restarted
66
daemon_reload: yes
77
enabled: yes

ansible/roles/zfs/files/zrepl.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
- name: home
1818
type: snap
1919
filesystems: {
20-
"zroot/data/home<": true
20+
"zroot/data/home/user<": true,
21+
"zroot/data/home/user/downloads": false
2122
}
2223
snapshotting:
2324
type: periodic

scripts/zfs/install/02-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ EOSF
218218
cpanm --notest --installdeps .
219219
220220
# Create user
221-
useradd -m $user
221+
zfs create zroot/data/home/${user}
222+
useradd -m ${user}
223+
chown -R ${user}:${user} /home/${user}
222224
223225
EOF
224226

0 commit comments

Comments
 (0)