Compare commits
51 Commits
2018e47525
...
75af2aba0f
| Author | SHA1 | Date | |
|---|---|---|---|
| 75af2aba0f | |||
| 65455aff68 | |||
| da77ab91c7 | |||
| 03fbae33e4 | |||
| f844c3cc48 | |||
| f88cbf2a32 | |||
| adb32321a3 | |||
| 18b32adfc9 | |||
| 8f850ec2c8 | |||
| 73fe37e50f | |||
| 5e8820da53 | |||
| 7e0a937516 | |||
| ea1b3ecc3d | |||
| b4f502e964 | |||
| f84ed5f28d | |||
| 89799c2ccd | |||
| c51a326278 | |||
| cedecc54b9 | |||
| 0b01fd236e | |||
| 6e518966e0 | |||
| e8f2888ead | |||
| d9bb925581 | |||
| eac0c05a56 | |||
| ea512bb92d | |||
| 06bdbb608c | |||
| d5c8aaa6d8 | |||
| 60667c81a2 | |||
| c194f06137 | |||
| f93ce57d11 | |||
| cc3dcb9979 | |||
| d0c39c4dc6 | |||
| 42b8685182 | |||
| e369cf1917 | |||
| 10dd7a588e | |||
| b733b560b8 | |||
| 55b494a045 | |||
| db7e251b94 | |||
| 76de35c9a0 | |||
| 73a26bb372 | |||
| 7eefa3c800 | |||
| 959dc9dd80 | |||
| 614e3434e8 | |||
| c9d1fa8b0f | |||
| fa756766e5 | |||
| 4f4a9b919f | |||
| d086928ecc | |||
| 6008fb53db | |||
| 3fceca6d87 | |||
| aea05be674 | |||
| b9a9097f95 | |||
| d9dd1e7acf |
2
Makefile
2
Makefile
@@ -6,7 +6,7 @@ ansible = venv/bin/ansible-playbook
|
|||||||
ansible_run = $(activate) && ansible-playbook --inventory localhost, --diff --verbose ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
ansible_run = $(activate) && ansible-playbook --inventory localhost, --diff --verbose ./playbook.yml ${ANSIBLE_EXTRA_ARGS}
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(ansible)
|
all: | venv $(ansible)
|
||||||
$(ansible_run)
|
$(ansible_run)
|
||||||
|
|
||||||
.PHONY: dryrun
|
.PHONY: dryrun
|
||||||
|
|||||||
@@ -14,10 +14,14 @@ users:
|
|||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
gpg_agent: true
|
gpg_agent: true
|
||||||
gpg_agent_for_ssh: true
|
gpg_agent_for_ssh: true
|
||||||
gpg_keys:
|
gpg_key:
|
||||||
master_key: "0xB5C002530C6A2053"
|
email: hannes@hkoerber.de
|
||||||
|
id: "0xB5C002530C6A2053"
|
||||||
|
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||||
|
enable_passwordstore: true
|
||||||
environment:
|
environment:
|
||||||
MACHINE_HAS_NEXTCLOUD: "true"
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
|
has_yubikey: true
|
||||||
|
|
||||||
screen:
|
screen:
|
||||||
1: DisplayPort-0
|
1: DisplayPort-0
|
||||||
|
|||||||
75
_machines/neptune.yml
Normal file
75
_machines/neptune.yml
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
font_size: 11
|
||||||
|
letter_space: 0
|
||||||
|
terminal_binary: alacritty
|
||||||
|
|
||||||
|
users:
|
||||||
|
- name: hannes-work
|
||||||
|
group: hannes-work
|
||||||
|
vt: 1
|
||||||
|
firefox_profiles:
|
||||||
|
- name: default
|
||||||
|
manage_css: true
|
||||||
|
- name: meet
|
||||||
|
manage_css: false
|
||||||
|
mail: hannes.koerber@tradebyte.com
|
||||||
|
git_gpg_sign: false
|
||||||
|
gpg_agent: false
|
||||||
|
gpg_agent_for_ssh: false
|
||||||
|
environment:
|
||||||
|
MACHINE_HAS_NEXTCLOUD: "false"
|
||||||
|
MACHINE_HAS_RESTIC_BACKUP: "true"
|
||||||
|
MACHINE_HAS_ELEMENT: "false"
|
||||||
|
MACHINE_HAS_KEEPASSX: "true"
|
||||||
|
has_yubikey: false
|
||||||
|
- name: hannes-private
|
||||||
|
group: hannes-private
|
||||||
|
vt: 2
|
||||||
|
firefox_profiles:
|
||||||
|
- name: default
|
||||||
|
manage_css: true
|
||||||
|
mail: hannes@hkoerber.de
|
||||||
|
git_gpg_sign: false
|
||||||
|
gpg_agent: true
|
||||||
|
gpg_agent_for_ssh: true
|
||||||
|
gpg_key:
|
||||||
|
email: hannes@hkoerber.de
|
||||||
|
id: "0xB5C002530C6A2053"
|
||||||
|
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||||
|
enable_passwordstore: true
|
||||||
|
environment:
|
||||||
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
|
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||||
|
MACHINE_HAS_ELEMENT: "true"
|
||||||
|
MACHINE_HAS_KEEPASSX: "false"
|
||||||
|
has_yubikey: true
|
||||||
|
|
||||||
|
screen:
|
||||||
|
1: DP-1-1
|
||||||
|
2: DP-1-1
|
||||||
|
3: DP-1-2
|
||||||
|
4: DP-1-2
|
||||||
|
5: DP-1-2
|
||||||
|
6: DP-1-2
|
||||||
|
7: eDP-1
|
||||||
|
8: eDP-1
|
||||||
|
9: eDP-1
|
||||||
|
0: eDP-1
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
1: www
|
||||||
|
2: www
|
||||||
|
3: term-local
|
||||||
|
4: term-remote
|
||||||
|
7: comm
|
||||||
|
8: pass
|
||||||
|
9: music
|
||||||
|
10: pim
|
||||||
|
|
||||||
|
screencfgs:
|
||||||
|
- name: three-screens
|
||||||
|
key: F3
|
||||||
|
|
||||||
|
environment:
|
||||||
|
MACHINE_TYPE: "laptop"
|
||||||
|
MACHINE_RESOLUTION_X: "1920"
|
||||||
|
MACHINE_RESOLUTION_Y: "1080"
|
||||||
@@ -17,6 +17,7 @@ users:
|
|||||||
MACHINE_HAS_NEXTCLOUD: "false"
|
MACHINE_HAS_NEXTCLOUD: "false"
|
||||||
MACHINE_HAS_RESTIC_BACKUP: "true"
|
MACHINE_HAS_RESTIC_BACKUP: "true"
|
||||||
MACHINE_HAS_ELEMENT: "false"
|
MACHINE_HAS_ELEMENT: "false"
|
||||||
|
has_yubikey: false
|
||||||
- name: hannes-private
|
- name: hannes-private
|
||||||
group: tpp
|
group: tpp
|
||||||
vt: 2
|
vt: 2
|
||||||
@@ -24,12 +25,16 @@ users:
|
|||||||
git_gpg_sign: false
|
git_gpg_sign: false
|
||||||
gpg_agent: true
|
gpg_agent: true
|
||||||
gpg_agent_for_ssh: true
|
gpg_agent_for_ssh: true
|
||||||
gpg_keys:
|
gpg_key:
|
||||||
master_key: "0xB5C002530C6A2053"
|
email: hannes@hkoerber.de
|
||||||
|
id: "0xB5C002530C6A2053"
|
||||||
|
fingerprint: "973AE48D71B76735C4712B5BB5C002530C6A2053"
|
||||||
|
enable_passwordstore: true
|
||||||
environment:
|
environment:
|
||||||
MACHINE_HAS_NEXTCLOUD: "true"
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||||
MACHINE_HAS_ELEMENT: "true"
|
MACHINE_HAS_ELEMENT: "true"
|
||||||
|
has_yubikey: true
|
||||||
|
|
||||||
screen:
|
screen:
|
||||||
1: DP-1-1
|
1: DP-1-1
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
# each instance of Alacritty. If it is not present, alacritty will
|
# each instance of Alacritty. If it is not present, alacritty will
|
||||||
# check the local terminfo database and use `alacritty` if it is
|
# check the local terminfo database and use `alacritty` if it is
|
||||||
# available, otherwise `xterm-256color` is used.
|
# available, otherwise `xterm-256color` is used.
|
||||||
#TERM: alacritty
|
TERM: xterm-256color
|
||||||
|
|
||||||
window:
|
window:
|
||||||
# Window dimensions (changes require restart)
|
# Window dimensions (changes require restart)
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ Wants=discord.service
|
|||||||
Wants=dpms.service
|
Wants=dpms.service
|
||||||
Wants=dunst.service
|
Wants=dunst.service
|
||||||
Wants=element.service
|
Wants=element.service
|
||||||
Wants=firefox.service
|
{% for profile in user.firefox_profiles|default([]) %}
|
||||||
|
Wants=firefox@{{ profile.name }}.service
|
||||||
|
{% endfor %}
|
||||||
Wants=gpg-agent.service
|
Wants=gpg-agent.service
|
||||||
Wants=gnome-keyring.service
|
Wants=gnome-keyring.service
|
||||||
Wants=keepassx.service
|
Wants=keepassx.service
|
||||||
@@ -3,5 +3,5 @@ BindsTo=autostart.target
|
|||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P default
|
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
BindsTo=autostart.target
|
BindsTo=autostart.target
|
||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
|
ConditionPathExists=%h/.var/run/features/gpg_agent
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
email = {{ user.mail }}
|
email = {{ user.mail }}
|
||||||
useConfigOnly = true
|
useConfigOnly = true
|
||||||
{% if user.git_gpg_sign|bool %}
|
{% if user.git_gpg_sign|bool %}
|
||||||
signingkey = {{ user.gpg_keys.master_key }}
|
signingkey = {{ user.gpg_key.id }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
[github]
|
[github]
|
||||||
user = hakoerber
|
user = hakoerber
|
||||||
|
|||||||
109
gpgkeys/hannes@hkoerber.de.gpg.asc
Normal file
109
gpgkeys/hannes@hkoerber.de.gpg.asc
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBF52F2UBEADVm8w92aR5UoDq94jcCh5hEpbjIWrrmyBb3p7Z4x9loASIDNly
|
||||||
|
6SrHjpFONw7EdCNzT2zQCCCoKezKfzALuU3xQ3Vl5fhtp3Ij/HG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A36wRtlFyKgdHE0QiVD9VeCtGW1diFD3hEK+FqVdaxX45800gPjFIuzKOkv
|
||||||
|
zoVzYxrUCSACs+6QyyXP8I1zMX9SXRvEg02MmpohwmEhSgotOMcjbWNyVFNfCAaS
|
||||||
|
bCt9PyaWsz+qe2gGLAiYo2vvBij543vBgATSbFjhoM683gzo73AOYhaauULsy3Kq
|
||||||
|
yfolj6TwGyEg7wvMO6YLttKCahjyz5isiAcf4fSNqWG0zSnBf6n7HXdtTjjsfx8A
|
||||||
|
EQEAAYkEbAQYAQoAIBYhBJc65I1xt2c1xHErW7XAAlMMaiBTBQJedheFAhsCAkAJ
|
||||||
|
ELXAAlMMaiBTwXQgBBkBCgAdFiEEyitwWoxynRUrXLoQzSinzDExgBcFAl52F4UA
|
||||||
|
CgkQzSinzDExgBeCDw//WMa8qm/tBpr4BskpctySvIwiOf35o+cMAYvego94NkrY
|
||||||
|
wuASAn3/2QsaZvZnYdJfCrzchCA30QZxRWAvkHIJ/zXZ1ayugsnEypvhw23012Xr
|
||||||
|
KKMXyd6iuZdmbE1Umj6R1/LbdNjddqglR9AmKaOYaDzjpPuuirDbllRGh/7lluZq
|
||||||
|
q8BmPvFe6Cl8FIijx03RfCbYSvQQRH10IBeJ+z+eE7z7FRspf4kJ6vXAbbSlKoRR
|
||||||
|
+PcA+Yc7meW+dvMnRpczGDvDbl522Mw2pxV3p4aN8TSMwSWztD4koXo4KCklFPh5
|
||||||
|
M4R4HbZFEZj4i8BU+cbsQscJ4jHqrCK/qPSRx103ikVqwOElZkYqKthnrQ7rxO7S
|
||||||
|
0CZOKzlK56Vl9LbnYE0nTHqZOxf9k9Z1ue9aVCRXWcQhCUVm9CLUegZz4DJtK9vl
|
||||||
|
ntdYTKPRmMCUw407rhkEFA3bQc9l56GP5ARc6NN9C0fbz2PgIryuLP4BvR/BIV4L
|
||||||
|
qLBgGfztN3KjHYI2RWAw3OcaxU7UhmXbCFvy6j/PVJckHNheqaIm/+wyDt+/rXf0
|
||||||
|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ItdmZ8PBdC2kAx3vWEM
|
||||||
|
=553W
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
|
|
||||||
set $kill Shift+Q
|
set $kill Shift+Q
|
||||||
|
|
||||||
set $screenshot p
|
set $screenshot o
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -227,9 +227,6 @@ assign [class="^Wine$"] $workspace10
|
|||||||
|
|
||||||
bindsym $mod+Shift+v exec --no-startup-id redshift-toggle
|
bindsym $mod+Shift+v exec --no-startup-id redshift-toggle
|
||||||
|
|
||||||
bindsym $mod+Shift+$scratchpad move scratchpad
|
|
||||||
bindsym $mod+$scratchpad scratchpad show
|
|
||||||
|
|
||||||
bindsym $mod+$pim_toggle \
|
bindsym $mod+$pim_toggle \
|
||||||
unmark _destination; \
|
unmark _destination; \
|
||||||
mark _source; \
|
mark _source; \
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ general {
|
|||||||
|
|
||||||
|
|
||||||
order += spotify
|
order += spotify
|
||||||
|
{% if user.has_yubikey %}
|
||||||
order += "yubikey"
|
order += "yubikey"
|
||||||
|
{% endif %}
|
||||||
order += "volume_status output"
|
order += "volume_status output"
|
||||||
order += "volume_status input"
|
order += "volume_status input"
|
||||||
order += "wifi"
|
order += "wifi"
|
||||||
@@ -57,7 +59,6 @@ systemd spotify {
|
|||||||
unit = "spotify.service"
|
unit = "spotify.service"
|
||||||
user = true
|
user = true
|
||||||
format = " "
|
format = " "
|
||||||
on_click 1 = "exec $HOME/.i3/scripts/toggle-app spotify"
|
|
||||||
color_bad = '#F4Bf75'
|
color_bad = '#F4Bf75'
|
||||||
color_degraded = '#F4Bf75'
|
color_degraded = '#F4Bf75'
|
||||||
}
|
}
|
||||||
@@ -109,7 +110,6 @@ volume_status output {
|
|||||||
thresholds = []
|
thresholds = []
|
||||||
command = "pactl"
|
command = "pactl"
|
||||||
color_muted = '#FFFFFF'
|
color_muted = '#FFFFFF'
|
||||||
on_click 1 = "exec $HOME/.i3/scripts/pa-volume mute-toggle"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
volume_status input {
|
volume_status input {
|
||||||
@@ -120,5 +120,4 @@ volume_status input {
|
|||||||
command = "pactl"
|
command = "pactl"
|
||||||
color_muted = '#FFFFFF'
|
color_muted = '#FFFFFF'
|
||||||
is_input = True
|
is_input = True
|
||||||
on_click 1 = "exec $HOME/.i3/scripts/pa-volume mute-toggle-mic"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ set -o nounset
|
|||||||
DOTDIR="/var/lib/dotfiles"
|
DOTDIR="/var/lib/dotfiles"
|
||||||
_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] && [[ "${_SCRIPT_DIR}" != "${DOTDIR}" ]] ; then
|
if [[ "$(readlink "${_SCRIPT_DIR}")" != "${DOTDIR}" ]] && [[ "${_SCRIPT_DIR}" != "${DOTDIR}" ]] ; then
|
||||||
if [[ -e "${DOTDIR}" ]] ; then
|
if [[ -e "${DOTDIR}" ]] ; then
|
||||||
2>&1 printf "${DOTDIR} already exists. This seems unsafe.\n"
|
2>&1 printf "${DOTDIR} already exists. This seems unsafe.\n"
|
||||||
@@ -61,6 +63,7 @@ _install() {
|
|||||||
if ! command -v python3 >/dev/null ; then
|
if ! command -v python3 >/dev/null ; then
|
||||||
printf 'Python3 not installed, installing ...\n'
|
printf 'Python3 not installed, installing ...\n'
|
||||||
_install "python3"
|
_install "python3"
|
||||||
|
_install "python3-venv"
|
||||||
printf 'Done\n'
|
printf 'Done\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
50
packages.yml
50
packages.yml
@@ -4,6 +4,7 @@ packages:
|
|||||||
ubuntu:
|
ubuntu:
|
||||||
- build-essential
|
- build-essential
|
||||||
- exuberant-ctags
|
- exuberant-ctags
|
||||||
|
- cmake
|
||||||
archlinux:
|
archlinux:
|
||||||
- gcc
|
- gcc
|
||||||
- ctags
|
- ctags
|
||||||
@@ -55,7 +56,7 @@ packages:
|
|||||||
ubuntu: ["borgbackup"]
|
ubuntu: ["borgbackup"]
|
||||||
archlinux: ["borgbackup"]
|
archlinux: ["borgbackup"]
|
||||||
docker:
|
docker:
|
||||||
ubuntu: ["docker.io"]
|
ubuntu: ["docker.io", "containerd", "docker-compose"]
|
||||||
archlinux: ["docker", "docker-compose"]
|
archlinux: ["docker", "docker-compose"]
|
||||||
font-awesome:
|
font-awesome:
|
||||||
ubuntu: ["fonts-font-awesome"]
|
ubuntu: ["fonts-font-awesome"]
|
||||||
@@ -64,10 +65,10 @@ packages:
|
|||||||
ubuntu: ["fonts-inconsolata"]
|
ubuntu: ["fonts-inconsolata"]
|
||||||
archlinux: ["ttf-inconsolata"]
|
archlinux: ["ttf-inconsolata"]
|
||||||
font-dejavu:
|
font-dejavu:
|
||||||
ubuntu: []
|
ubuntu: ["fonts-dejavu"]
|
||||||
archlinux: ["ttf-dejavu"]
|
archlinux: ["ttf-dejavu"]
|
||||||
font-libertine:
|
font-libertine:
|
||||||
ubuntu: []
|
ubuntu: ["fonts-linuxlibertine"]
|
||||||
archlinux: ["ttf-linux-libertine"]
|
archlinux: ["ttf-linux-libertine"]
|
||||||
font-emoji:
|
font-emoji:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
@@ -143,13 +144,13 @@ packages:
|
|||||||
ubuntu: ["zathura", "zathura-pdf-poppler"]
|
ubuntu: ["zathura", "zathura-pdf-poppler"]
|
||||||
archlinux: ["zathura", "zathura-pdf-poppler"]
|
archlinux: ["zathura", "zathura-pdf-poppler"]
|
||||||
pdf:
|
pdf:
|
||||||
ubuntu: []
|
ubuntu: ["ghostscript", "enscript"]
|
||||||
archlinux: ["ghostscript", "enscript"]
|
archlinux: ["ghostscript", "enscript"]
|
||||||
pandoc:
|
pandoc:
|
||||||
ubuntu: ["pandoc"]
|
ubuntu: ["pandoc"]
|
||||||
archlinux: ["pandoc", "texlive-core", "texlive-fontsextra", "texlive-latexextra"]
|
archlinux: ["pandoc", "texlive-core", "texlive-fontsextra", "texlive-latexextra"]
|
||||||
libvirt:
|
libvirt:
|
||||||
ubuntu: ["virt-manager", "libvirt-bin"]
|
ubuntu: ["virt-manager", "libvirt-daemon"]
|
||||||
archlinux: ["virt-manager", "libvirt", "dnsmasq", "ebtables"]
|
archlinux: ["virt-manager", "libvirt", "dnsmasq", "ebtables"]
|
||||||
firefox:
|
firefox:
|
||||||
ubuntu: ["firefox"]
|
ubuntu: ["firefox"]
|
||||||
@@ -163,9 +164,6 @@ packages:
|
|||||||
unclutter:
|
unclutter:
|
||||||
ubuntu: ["unclutter"]
|
ubuntu: ["unclutter"]
|
||||||
archlinux: ["unclutter"]
|
archlinux: ["unclutter"]
|
||||||
chromium:
|
|
||||||
ubuntu: ["chromium-browser"]
|
|
||||||
archlinux: ["chromium"]
|
|
||||||
libreoffice:
|
libreoffice:
|
||||||
ubuntu: ["libreoffice"]
|
ubuntu: ["libreoffice"]
|
||||||
archlinux: ["libreoffice-fresh", "libreoffice-fresh-de"]
|
archlinux: ["libreoffice-fresh", "libreoffice-fresh-de"]
|
||||||
@@ -196,9 +194,6 @@ packages:
|
|||||||
dia:
|
dia:
|
||||||
ubuntu: ["dia"]
|
ubuntu: ["dia"]
|
||||||
archlinux: ["dia"]
|
archlinux: ["dia"]
|
||||||
shutter:
|
|
||||||
ubuntu: ["shutter"]
|
|
||||||
archlinux: []
|
|
||||||
nmap:
|
nmap:
|
||||||
ubuntu: ["nmap"]
|
ubuntu: ["nmap"]
|
||||||
archlinux: ["nmap"]
|
archlinux: ["nmap"]
|
||||||
@@ -248,10 +243,10 @@ packages:
|
|||||||
ubuntu: ["pwgen"]
|
ubuntu: ["pwgen"]
|
||||||
archlinux: ["pwgen"]
|
archlinux: ["pwgen"]
|
||||||
gpg:
|
gpg:
|
||||||
ubuntu: ["gnupg2"]
|
ubuntu: ["gnupg2", "pcscd", "scdaemon"]
|
||||||
archlinux: ["gnupg", "paperkey", "yubikey-manager", "yubikey-touch-detector"]
|
archlinux: ["gnupg", "paperkey", "yubikey-manager", "yubikey-touch-detector"]
|
||||||
networkmanager:
|
networkmanager:
|
||||||
ubuntu: ["network-manager", "network-manager-openvpn", "network-manager-openconnect"]
|
ubuntu: ["network-manager", "network-manager-openvpn", "network-manager-openconnect", "network-manager-openconnect-gnome"]
|
||||||
archlinux: ["networkmanager"]
|
archlinux: ["networkmanager"]
|
||||||
pulseaudio:
|
pulseaudio:
|
||||||
ubuntu: ["pulseaudio", "pulseaudio-utils"]
|
ubuntu: ["pulseaudio", "pulseaudio-utils"]
|
||||||
@@ -300,9 +295,9 @@ packages:
|
|||||||
archlinux: ["bwm-ng"]
|
archlinux: ["bwm-ng"]
|
||||||
virtualbox:
|
virtualbox:
|
||||||
ubuntu: ["virtualbox"]
|
ubuntu: ["virtualbox"]
|
||||||
archlinux: []
|
archlinux: ["virtualbox"]
|
||||||
ssh:
|
ssh:
|
||||||
ubuntu: []
|
ubuntu: ["ssh"]
|
||||||
archlinux: ["openssh"]
|
archlinux: ["openssh"]
|
||||||
sshfs:
|
sshfs:
|
||||||
ubuntu: ["sshfs"]
|
ubuntu: ["sshfs"]
|
||||||
@@ -323,7 +318,7 @@ packages:
|
|||||||
ubuntu: ["rustc", "cargo"]
|
ubuntu: ["rustc", "cargo"]
|
||||||
archlinux: ["rust"]
|
archlinux: ["rust"]
|
||||||
musescore:
|
musescore:
|
||||||
ubuntu: ["musescore"]
|
ubuntu: ["musescore3"]
|
||||||
archlinux: ["musescore"]
|
archlinux: ["musescore"]
|
||||||
sipcalc:
|
sipcalc:
|
||||||
ubuntu: ["sipcalc"]
|
ubuntu: ["sipcalc"]
|
||||||
@@ -335,7 +330,7 @@ packages:
|
|||||||
ubuntu: ["anki"]
|
ubuntu: ["anki"]
|
||||||
archlinux: ["anki"]
|
archlinux: ["anki"]
|
||||||
imv:
|
imv:
|
||||||
ubuntu: []
|
ubuntu: ["imv"]
|
||||||
archlinux: ["imv"]
|
archlinux: ["imv"]
|
||||||
pacman:
|
pacman:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
@@ -344,13 +339,13 @@ packages:
|
|||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: ["steam"]
|
archlinux: ["steam"]
|
||||||
man:
|
man:
|
||||||
ubuntu: []
|
ubuntu: ["man"]
|
||||||
archlinux: ["man-db", "man-pages"]
|
archlinux: ["man-db", "man-pages"]
|
||||||
discord:
|
discord:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: ["discord"]
|
archlinux: ["discord"]
|
||||||
nextcloud:
|
nextcloud:
|
||||||
ubuntu: []
|
ubuntu: ["nextcloud-desktop"]
|
||||||
archlinux: ["nextcloud-client"]
|
archlinux: ["nextcloud-client"]
|
||||||
kwallet:
|
kwallet:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
@@ -365,10 +360,10 @@ packages:
|
|||||||
ubuntu: ["pv"]
|
ubuntu: ["pv"]
|
||||||
archlinux: ["pv"]
|
archlinux: ["pv"]
|
||||||
stress:
|
stress:
|
||||||
ubuntu: []
|
ubuntu: ["stress"]
|
||||||
archlinux: ["stress"]
|
archlinux: ["stress"]
|
||||||
mpris:
|
mpris:
|
||||||
ubuntu: ["stress"]
|
ubuntu: ["playerctl"]
|
||||||
archlinux: ["playerctl"]
|
archlinux: ["playerctl"]
|
||||||
imagemagick:
|
imagemagick:
|
||||||
ubuntu: ["imagemagick"]
|
ubuntu: ["imagemagick"]
|
||||||
@@ -383,16 +378,25 @@ packages:
|
|||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: ["element-desktop"]
|
archlinux: ["element-desktop"]
|
||||||
maim:
|
maim:
|
||||||
ubuntu: []
|
ubuntu: ["maim"]
|
||||||
archlinux: ["maim"]
|
archlinux: ["maim"]
|
||||||
mkinitcpio:
|
mkinitcpio:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: ["mkinitcpio"]
|
archlinux: ["mkinitcpio"]
|
||||||
terraform:
|
terraform:
|
||||||
ubuntu: ["terraform"]
|
ubuntu: []
|
||||||
archlinux: ["terraform"]
|
archlinux: ["terraform"]
|
||||||
|
synclient:
|
||||||
|
ubuntu: ["xserver-xorg-input-synaptics"]
|
||||||
|
archlinux: ["xf86-input-synaptics"]
|
||||||
|
ncdu:
|
||||||
|
ubuntu: ["ncdu"]
|
||||||
|
archlinux: ["ncdu"]
|
||||||
|
|
||||||
remove:
|
remove:
|
||||||
mousepad:
|
mousepad:
|
||||||
ubuntu: ["mousepad"]
|
ubuntu: ["mousepad"]
|
||||||
archlinux: ["mousepad"]
|
archlinux: ["mousepad"]
|
||||||
|
chrome:
|
||||||
|
ubuntu: ["google-chrome-stable"]
|
||||||
|
archlinux: []
|
||||||
|
|||||||
146
playbook.yml
146
playbook.yml
@@ -62,7 +62,7 @@
|
|||||||
- name: install pacman-contrib for paccache
|
- name: install pacman-contrib for paccache
|
||||||
package:
|
package:
|
||||||
name: pacman-contrib
|
name: pacman-contrib
|
||||||
state: installed
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Clean cache
|
- name: Clean cache
|
||||||
@@ -76,12 +76,12 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: install sudo
|
- name: install sudo
|
||||||
package:
|
package:
|
||||||
state: installed
|
state: present
|
||||||
name: sudo
|
name: sudo
|
||||||
|
|
||||||
- name: install dependencies for paru
|
- name: install dependencies for paru
|
||||||
package:
|
package:
|
||||||
state: installed
|
state: present
|
||||||
name:
|
name:
|
||||||
- base-devel
|
- base-devel
|
||||||
- git
|
- git
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
- name: install packages
|
- name: install packages
|
||||||
package:
|
package:
|
||||||
name: "{{ packages|json_query(query) }}"
|
name: "{{ packages|json_query(query) }}"
|
||||||
state: installed
|
state: present
|
||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
query: "{{ 'list.*.%s[]'|format(distro) }}"
|
query: "{{ 'list.*.%s[]'|format(distro) }}"
|
||||||
@@ -217,7 +217,7 @@
|
|||||||
- name: install lz4
|
- name: install lz4
|
||||||
package:
|
package:
|
||||||
name: lz4
|
name: lz4
|
||||||
state: installed
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: use lz4 for mkinitcpio compression
|
- name: use lz4 for mkinitcpio compression
|
||||||
@@ -333,7 +333,7 @@
|
|||||||
- lib32-libva-mesa-driver
|
- lib32-libva-mesa-driver
|
||||||
- mesa-vdpau
|
- mesa-vdpau
|
||||||
- lib32-mesa-vdpau
|
- lib32-mesa-vdpau
|
||||||
state: installed
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: set AMDGPU options
|
- name: set AMDGPU options
|
||||||
@@ -355,6 +355,128 @@
|
|||||||
- distro == 'archlinux'
|
- distro == 'archlinux'
|
||||||
- machine.gpu is defined and machine.gpu == 'amd'
|
- machine.gpu is defined and machine.gpu == 'amd'
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: install alacritty build dependencies
|
||||||
|
package:
|
||||||
|
state: present
|
||||||
|
# https://github.com/alacritty/alacritty/blob/master/INSTALL.md#debianubuntu
|
||||||
|
name:
|
||||||
|
- cmake
|
||||||
|
- pkg-config
|
||||||
|
- libfreetype6-dev
|
||||||
|
- libfontconfig1-dev
|
||||||
|
- libxcb-xfixes0-dev
|
||||||
|
- libxkbcommon-dev
|
||||||
|
- python3
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: stat alacritty binary
|
||||||
|
stat:
|
||||||
|
path: /usr/local/bin/alacritty
|
||||||
|
register: alacritty_binary
|
||||||
|
|
||||||
|
- name: create temporary directory for alacritty build
|
||||||
|
tempfile:
|
||||||
|
state: directory
|
||||||
|
register: alacritty_build_tempdir
|
||||||
|
when: not alacritty_binary.stat.exists
|
||||||
|
|
||||||
|
- name: build alacritty
|
||||||
|
command: cargo install alacritty --root ./out
|
||||||
|
args:
|
||||||
|
chdir: "{{ alacritty_build_tempdir.path }}"
|
||||||
|
when: not alacritty_binary.stat.exists
|
||||||
|
|
||||||
|
- name: install alacritty
|
||||||
|
command: mv "{{ alacritty_build_tempdir.path }}/out/bin/alacritty" /usr/local/bin/alacritty
|
||||||
|
become: true
|
||||||
|
when: not alacritty_binary.stat.exists
|
||||||
|
|
||||||
|
- name: clean up build directory
|
||||||
|
file:
|
||||||
|
path: "{{ alacritty_build_tempdir.path }}"
|
||||||
|
state: absent
|
||||||
|
when: not alacritty_binary.stat.exists
|
||||||
|
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
tags: [alacritty]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: stat yubikey-touch-detector binary
|
||||||
|
stat:
|
||||||
|
path: /usr/local/bin/yubikey-touch-detector
|
||||||
|
register: yubikey_touch_detector_binary
|
||||||
|
|
||||||
|
- name: create temporary directory for yubikey-touch-detector build
|
||||||
|
tempfile:
|
||||||
|
state: directory
|
||||||
|
register: yubikey_touch_detector_build_tempdir
|
||||||
|
when: not yubikey_touch_detector_binary.stat.exists
|
||||||
|
|
||||||
|
- name: build yubikey-touch-detector
|
||||||
|
shell: env GOPATH=$(pwd) go get -u github.com/maximbaz/yubikey-touch-detector
|
||||||
|
args:
|
||||||
|
chdir: "{{ yubikey_touch_detector_build_tempdir.path }}"
|
||||||
|
when: not yubikey_touch_detector_binary.stat.exists
|
||||||
|
|
||||||
|
- name: install yubikey-touch-detector
|
||||||
|
command: >
|
||||||
|
mv
|
||||||
|
"{{ yubikey_touch_detector_build_tempdir.path }}/bin/yubikey-touch-detector"
|
||||||
|
/usr/local/bin/yubikey-touch-detector
|
||||||
|
become: true
|
||||||
|
when: not yubikey_touch_detector_binary.stat.exists
|
||||||
|
|
||||||
|
- name: clean up build directory
|
||||||
|
file:
|
||||||
|
path: "{{ yubikey_touch_detector_build_tempdir.path }}"
|
||||||
|
state: absent
|
||||||
|
when: not yubikey_touch_detector_binary.stat.exists
|
||||||
|
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
tags: [yubikey-touch-detector]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: add spotify apt key
|
||||||
|
apt_key:
|
||||||
|
url: "https://download.spotify.com/debian/pubkey_0D811D58.gpg"
|
||||||
|
id: "D1742AD60D811D58"
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: add spotify repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb http://repository.spotify.com stable non-free"
|
||||||
|
filename: spotify
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: install spotify
|
||||||
|
apt:
|
||||||
|
name: spotify-client
|
||||||
|
update_cache: true
|
||||||
|
become: true
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
tags: [spotify]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: add signal apt key
|
||||||
|
apt_key:
|
||||||
|
url: "https://updates.signal.org/desktop/apt/keys.asc"
|
||||||
|
id: "D980A17457F6FB06"
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: add signal repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb https://updates.signal.org/desktop/apt xenial main"
|
||||||
|
filename: spotify
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: install signal
|
||||||
|
apt:
|
||||||
|
name: signal-desktop
|
||||||
|
update_cache: true
|
||||||
|
become: true
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
tags: [signal]
|
||||||
|
|
||||||
- name: create dotfiles group
|
- name: create dotfiles group
|
||||||
group:
|
group:
|
||||||
@@ -363,11 +485,21 @@
|
|||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
|
- name: create dotfiles user
|
||||||
|
user:
|
||||||
|
name: dotfiles
|
||||||
|
home: /var/lib/dotfiles
|
||||||
|
create_home: false
|
||||||
|
shell: /bin/bash
|
||||||
|
system: true
|
||||||
|
become: true
|
||||||
|
become_user: root
|
||||||
|
|
||||||
- name: create dotfiles directory
|
- name: create dotfiles directory
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: /var/lib/dotfiles
|
path: /var/lib/dotfiles
|
||||||
owner: nobody
|
owner: dotfiles
|
||||||
group: dotfiles
|
group: dotfiles
|
||||||
mode: '0775' # group needs write access!
|
mode: '0775' # group needs write access!
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
14
screencfg/neptune/default.yml
Normal file
14
screencfg/neptune/default.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
reset: false
|
||||||
|
outputs:
|
||||||
|
- name: eDP-1
|
||||||
|
primary: True
|
||||||
|
opts:
|
||||||
|
mode: 1920x1080
|
||||||
|
scale: 1x1
|
||||||
|
pos: "0x0" # beware of hex
|
||||||
|
- name: DP-1-1
|
||||||
|
disable: true
|
||||||
|
- name: DP-1-2
|
||||||
|
disable: true
|
||||||
|
- name: DP-1-3
|
||||||
|
disable: true
|
||||||
18
screencfg/neptune/three-screens.yml
Normal file
18
screencfg/neptune/three-screens.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
reset: true
|
||||||
|
outputs:
|
||||||
|
- name: eDP-1
|
||||||
|
opts:
|
||||||
|
mode: 1920x1080
|
||||||
|
scale: 0.7x0.7
|
||||||
|
pos: "0x0" # beware of hex
|
||||||
|
- name: DP-3
|
||||||
|
primary: True
|
||||||
|
opts:
|
||||||
|
mode: 1920x1080
|
||||||
|
right-of: eDP-1
|
||||||
|
reset: true
|
||||||
|
- name: DP-4
|
||||||
|
opts:
|
||||||
|
mode: 1920x1080
|
||||||
|
right-of: DP-3
|
||||||
|
reset: true
|
||||||
134
user.yml
134
user.yml
@@ -77,10 +77,10 @@
|
|||||||
dest: "/home/{{ user.name }}/.config/systemd/user/{{ item }}"
|
dest: "/home/{{ user.name }}/.config/systemd/user/{{ item }}"
|
||||||
src: "/dev/null"
|
src: "/dev/null"
|
||||||
with_items:
|
with_items:
|
||||||
- gpg-agent.service
|
|
||||||
- gpg-agent.socket
|
- gpg-agent.socket
|
||||||
- gpg-agent-browser.socket
|
- gpg-agent-browser.socket
|
||||||
- gpg-agent-ssh.socket
|
- gpg-agent-ssh.socket
|
||||||
|
- gpg-agent-extra.socket
|
||||||
|
|
||||||
- name: create directory for getty autologin
|
- name: create directory for getty autologin
|
||||||
file:
|
file:
|
||||||
@@ -257,8 +257,6 @@
|
|||||||
owner: "{{ user.name }}"
|
owner: "{{ user.name }}"
|
||||||
group: "{{ user_group_name }}"
|
group: "{{ user_group_name }}"
|
||||||
with_items:
|
with_items:
|
||||||
- name: terraform
|
|
||||||
optpath: terraform
|
|
||||||
- name: hugo
|
- name: hugo
|
||||||
optpath: hugo
|
optpath: hugo
|
||||||
- name: drone
|
- name: drone
|
||||||
@@ -320,8 +318,7 @@
|
|||||||
cd ~/.local/share/nvim/plugged/YouCompleteMe/
|
cd ~/.local/share/nvim/plugged/YouCompleteMe/
|
||||||
python3 ./install.py --force-sudo
|
python3 ./install.py --force-sudo
|
||||||
args:
|
args:
|
||||||
creates: ~/.local/share/nvim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.so
|
creates: "{{ lookup('fileglob', '~/.local/share/nvim/plugged/YouCompleteMe/third_party/ycmd/ycm_core.*so') }}"
|
||||||
when: vim_plugins_stdout.stdout_lines|length != 0 or true
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: firefox - create chrome directory
|
- name: firefox - create chrome directory
|
||||||
@@ -391,6 +388,11 @@
|
|||||||
dest: "{{ tempdir.path }}/PortfolioPerformance"
|
dest: "{{ tempdir.path }}/PortfolioPerformance"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
|
- name: clean up temp directory
|
||||||
|
file:
|
||||||
|
path: "{{ tempdir.path }"
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: install portfolio performance
|
- name: install portfolio performance
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ tempdir.path }}/PortfolioPerformance"
|
src: "{{ tempdir.path }}/PortfolioPerformance"
|
||||||
@@ -418,7 +420,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: set kubectl version
|
- name: set kubectl version
|
||||||
set_fact:
|
set_fact:
|
||||||
kubectl_version: v1.20.1
|
kubectl_version: v1.22.2
|
||||||
|
|
||||||
- name: get current stable version
|
- name: get current stable version
|
||||||
uri:
|
uri:
|
||||||
@@ -434,10 +436,10 @@
|
|||||||
kubectl_outdated: "{{ kubectl_version != kubectl_stable_version }}"
|
kubectl_outdated: "{{ kubectl_version != kubectl_stable_version }}"
|
||||||
|
|
||||||
- name: warn if not on stable version
|
- name: warn if not on stable version
|
||||||
debug:
|
fail:
|
||||||
msg: "installing kubectl {{ kubectl_version }}, stable version would be {{ kubectl_stable_version }}"
|
msg: "installing kubectl {{ kubectl_version }}, stable version would be {{ kubectl_stable_version }}"
|
||||||
changed_when: kubectl_outdated is sameas true
|
|
||||||
when: kubectl_outdated is sameas true
|
when: kubectl_outdated is sameas true
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
- name: get kubectl
|
- name: get kubectl
|
||||||
get_url:
|
get_url:
|
||||||
@@ -456,6 +458,70 @@
|
|||||||
tags:
|
tags:
|
||||||
- kubectl
|
- kubectl
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: set terraform version
|
||||||
|
set_fact:
|
||||||
|
terraform_version: 1.0.2
|
||||||
|
|
||||||
|
- name: stat current terraform binary
|
||||||
|
stat:
|
||||||
|
path: "/home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}"
|
||||||
|
register: terraform_binary
|
||||||
|
|
||||||
|
- name: create temporary download directory for terraform
|
||||||
|
tempfile:
|
||||||
|
state: directory
|
||||||
|
register: terraform_download_dir
|
||||||
|
when: not terraform_binary.stat.exists
|
||||||
|
|
||||||
|
- name: get terraform
|
||||||
|
get_url:
|
||||||
|
url: "https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_linux_amd64.zip"
|
||||||
|
dest: "{{ terraform_download_dir.path }}/terraform.zip"
|
||||||
|
when: not terraform_binary.stat.exists
|
||||||
|
|
||||||
|
- name: unpack terraform zip
|
||||||
|
unarchive:
|
||||||
|
src: "{{ terraform_download_dir.path }}/terraform.zip"
|
||||||
|
dest: "{{ terraform_download_dir.path }}/"
|
||||||
|
remote_src: true
|
||||||
|
when: not terraform_binary.stat.exists
|
||||||
|
|
||||||
|
- name: install terraform
|
||||||
|
command: mv "{{ terraform_download_dir.path }}/terraform" /home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}
|
||||||
|
when: not terraform_binary.stat.exists
|
||||||
|
|
||||||
|
- name: clean up download directory
|
||||||
|
file:
|
||||||
|
path: "{{ terraform_download_dir.path }}"
|
||||||
|
state: absent
|
||||||
|
when: not terraform_binary.stat.exists
|
||||||
|
|
||||||
|
- name: link terraform
|
||||||
|
file:
|
||||||
|
src: /home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}
|
||||||
|
dest: /home/{{ user.name }}/.optbin/terraform
|
||||||
|
state: link
|
||||||
|
|
||||||
|
- name: get terraform version info
|
||||||
|
command: /home/{{ user.name }}/.optbin/terraform version -json
|
||||||
|
register: terraform_version_output
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: parse terraform version output
|
||||||
|
set_fact:
|
||||||
|
terraform_outdated: "{{ (terraform_version_output.stdout | from_json()).terraform_outdated }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: warn if terraform is outdated
|
||||||
|
fail:
|
||||||
|
msg: "current terraform v{{ terraform_version }} is out of date"
|
||||||
|
when: terraform_outdated is sameas true
|
||||||
|
ignore_errors: True
|
||||||
|
|
||||||
|
tags:
|
||||||
|
- terraform
|
||||||
|
|
||||||
- name: handle autostart units
|
- name: handle autostart units
|
||||||
block:
|
block:
|
||||||
- name: create systemd user directory
|
- name: create systemd user directory
|
||||||
@@ -478,5 +544,57 @@
|
|||||||
group: "{{ user_group_name }}"
|
group: "{{ user_group_name }}"
|
||||||
with_fileglob: /var/lib/dotfiles/autostart/services/*
|
with_fileglob: /var/lib/dotfiles/autostart/services/*
|
||||||
|
|
||||||
|
- name: get state of autostart.target
|
||||||
|
stat:
|
||||||
|
path: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||||
|
register: autostart_target_stat
|
||||||
|
|
||||||
|
- name: remove invalid autostart.target
|
||||||
|
file:
|
||||||
|
path: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||||
|
state: absent
|
||||||
|
when:
|
||||||
|
- autostart_target_stat.stat.exists
|
||||||
|
- not autostart_target_stat.stat.isreg
|
||||||
|
|
||||||
|
- name: deploy autostart.target
|
||||||
|
template:
|
||||||
|
src: ./autostart/autostart.target.j2
|
||||||
|
dest: "/home/{{ user.name }}/.config/systemd/user/autostart.target"
|
||||||
|
owner: "{{ user.name }}"
|
||||||
|
group: "{{ user_group_name }}"
|
||||||
|
force: true
|
||||||
|
follow: false
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- autostart
|
- autostart
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: import gpg key
|
||||||
|
command: gpg --import ./gpgkeys/{{ user.gpg_key.email }}.gpg.asc
|
||||||
|
register: gpg_import_output
|
||||||
|
changed_when: not ("unchanged" in gpg_import_output.stderr)
|
||||||
|
|
||||||
|
- name: trust gpg key
|
||||||
|
shell: "gpg --import-ownertrust <<< {{ user.gpg_key.fingerprint }}:6"
|
||||||
|
args:
|
||||||
|
executable: /bin/bash # required for <<<
|
||||||
|
register: gpg_trust_output
|
||||||
|
changed_when: gpg_trust_output.stderr_lines|length > 0
|
||||||
|
|
||||||
|
when: user.gpg_key is defined
|
||||||
|
tags: [gpg]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: stat passwordstore checkout
|
||||||
|
stat:
|
||||||
|
path: /home/{{ user.name }}/.password-store
|
||||||
|
register: passwordstore_checkout
|
||||||
|
- name: check out passwordstore repository
|
||||||
|
git:
|
||||||
|
dest: /home/{{ user.name }}/.password-store
|
||||||
|
repo: ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git
|
||||||
|
accept_hostkey: true
|
||||||
|
when: not passwordstore_checkout.stat.exists
|
||||||
|
when: user.enable_passwordstore|default(false) is sameas true
|
||||||
|
tags: [passwordstore]
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ Plug 'rodjek/vim-puppet'
|
|||||||
Plug 'suan/vim-instant-markdown'
|
Plug 'suan/vim-instant-markdown'
|
||||||
"Plug 'marshallward/vim-restructuredtext'
|
"Plug 'marshallward/vim-restructuredtext'
|
||||||
"Plug 'vim-syntastic/syntastic'
|
"Plug 'vim-syntastic/syntastic'
|
||||||
Plug 'ElmCast/elm-vim'
|
"Plug 'ElmCast/elm-vim'
|
||||||
Plug 'avh4/elm-format'
|
Plug 'avh4/elm-format'
|
||||||
|
|
||||||
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
|
|||||||
@@ -62,7 +62,11 @@ mkdir -p "${FEATURE_DIR}"
|
|||||||
[[ $MACHINE_HAS_RESTIC_BACKUP == "true" ]] && touch "${FEATURE_DIR}"/restic_backup
|
[[ $MACHINE_HAS_RESTIC_BACKUP == "true" ]] && touch "${FEATURE_DIR}"/restic_backup
|
||||||
[[ $MACHINE_HAS_ELEMENT == "true" ]] && touch "${FEATURE_DIR}"/element
|
[[ $MACHINE_HAS_ELEMENT == "true" ]] && touch "${FEATURE_DIR}"/element
|
||||||
|
|
||||||
[[ $MACHINE_TYPE == "laptop" ]] && touch "${FEATURE_DIR}"/matchine_is_laptop
|
[[ $MACHINE_TYPE == "laptop" ]] && touch "${FEATURE_DIR}"/machine_is_laptop
|
||||||
|
|
||||||
|
{% if user.gpg_agent %}
|
||||||
|
touch "${FEATURE_DIR}"/gpg_agent
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Make all environment variables also usable in the systemd user instancee
|
# Make all environment variables also usable in the systemd user instancee
|
||||||
systemctl --user import-environment
|
systemctl --user import-environment
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ alias twa="task add"
|
|||||||
alias twd="task done"
|
alias twd="task done"
|
||||||
alias inbox="task add +inbox"
|
alias inbox="task add +inbox"
|
||||||
|
|
||||||
alias yaml2json="python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)'"
|
alias yaml2json="python3 -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout, indent=4)'"
|
||||||
alias json2yaml="python -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
|
alias json2yaml="python3 -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
|
||||||
|
|
||||||
alias currentbranch='git rev-parse --abbrev-ref HEAD'
|
alias currentbranch='git rev-parse --abbrev-ref HEAD'
|
||||||
|
|
||||||
@@ -89,6 +89,8 @@ alias sysu="systemctl --user"
|
|||||||
|
|
||||||
alias gpg=gpg2
|
alias gpg=gpg2
|
||||||
|
|
||||||
|
alias alacritty="alacritty --config-file $HOME/.config/alacritty.yml"
|
||||||
|
|
||||||
gitmaster() {
|
gitmaster() {
|
||||||
git stash push -m gitmaster-$(date -uIseconds) -u || return 1
|
git stash push -m gitmaster-$(date -uIseconds) -u || return 1
|
||||||
_branch=$(git rev-parse --abbrev-ref HEAD)
|
_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|||||||
Reference in New Issue
Block a user