Compare commits
22 Commits
214de1d2a2
...
test2
| Author | SHA1 | Date | |
|---|---|---|---|
| f7d448f63b | |||
| 2a9a66fb06 | |||
| a29940a65a | |||
| d283bcddcd | |||
| efb3e54dcb | |||
| 872c9314e9 | |||
| 84c738ce64 | |||
| d814a13602 | |||
| 35b7ff0567 | |||
| ee10eb8779 | |||
| cc69e21613 | |||
| 0c6ffc6dbd | |||
| c21a76907c | |||
| 36dcdad8b7 | |||
| 3215c88ee1 | |||
| d2509eb0aa | |||
| d7305dc070 | |||
| 95a87d5112 | |||
| 9c11f4b357 | |||
| 05b7b53677 | |||
| 9170f6af1d | |||
| 14270d4217 |
@@ -27,6 +27,8 @@ users:
|
|||||||
environment:
|
environment:
|
||||||
MACHINE_HAS_NEXTCLOUD: "true"
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
has_yubikey: true
|
has_yubikey: true
|
||||||
|
repositories:
|
||||||
|
- personal_projects
|
||||||
|
|
||||||
screen:
|
screen:
|
||||||
1: DisplayPort-0
|
1: DisplayPort-0
|
||||||
@@ -52,7 +54,6 @@ environment:
|
|||||||
MACHINE_HAS_KEEPASSX: "false"
|
MACHINE_HAS_KEEPASSX: "false"
|
||||||
MACHINE_HAS_NEXTCLOUD: "true"
|
MACHINE_HAS_NEXTCLOUD: "true"
|
||||||
MACHINE_HAS_STEAM: "true"
|
MACHINE_HAS_STEAM: "true"
|
||||||
MACHINE_HAS_DISCORD: "true"
|
|
||||||
MACHINE_HAS_RESTIC_BACKUP: "false"
|
MACHINE_HAS_RESTIC_BACKUP: "false"
|
||||||
MACHINE_HAS_ELEMENT: "true"
|
MACHINE_HAS_ELEMENT: "true"
|
||||||
MACHINE_RESOLUTION_X: "2560"
|
MACHINE_RESOLUTION_X: "2560"
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ users:
|
|||||||
MACHINE_HAS_ELEMENT: "false"
|
MACHINE_HAS_ELEMENT: "false"
|
||||||
MACHINE_HAS_KEEPASSX: "true"
|
MACHINE_HAS_KEEPASSX: "true"
|
||||||
has_yubikey: false
|
has_yubikey: false
|
||||||
|
repositories: []
|
||||||
- name: hannes-private
|
- name: hannes-private
|
||||||
group: hannes-private
|
group: hannes-private
|
||||||
vt: 2
|
vt: 2
|
||||||
@@ -54,6 +55,8 @@ users:
|
|||||||
MACHINE_HAS_ELEMENT: "true"
|
MACHINE_HAS_ELEMENT: "true"
|
||||||
MACHINE_HAS_KEEPASSX: "false"
|
MACHINE_HAS_KEEPASSX: "false"
|
||||||
has_yubikey: true
|
has_yubikey: true
|
||||||
|
repositories:
|
||||||
|
- personal_projects
|
||||||
|
|
||||||
screen:
|
screen:
|
||||||
1: DP-1-1
|
1: DP-1-1
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ users:
|
|||||||
MACHINE_HAS_ELEMENT: "false"
|
MACHINE_HAS_ELEMENT: "false"
|
||||||
MACHINE_HAS_KEEPASSX: "true"
|
MACHINE_HAS_KEEPASSX: "true"
|
||||||
has_yubikey: false
|
has_yubikey: false
|
||||||
|
repositories: []
|
||||||
- name: hannes-private
|
- name: hannes-private
|
||||||
group: hannes-private
|
group: hannes-private
|
||||||
vt: 2
|
vt: 2
|
||||||
@@ -54,6 +55,8 @@ users:
|
|||||||
MACHINE_HAS_ELEMENT: "true"
|
MACHINE_HAS_ELEMENT: "true"
|
||||||
MACHINE_HAS_KEEPASSX: "false"
|
MACHINE_HAS_KEEPASSX: "false"
|
||||||
has_yubikey: true
|
has_yubikey: true
|
||||||
|
repositories:
|
||||||
|
- personal_projects
|
||||||
|
|
||||||
screen:
|
screen:
|
||||||
1: DP-1-1
|
1: DP-1-1
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ BindsTo=windowmanager.target
|
|||||||
After=windowmanager.target
|
After=windowmanager.target
|
||||||
|
|
||||||
Wants=blueman.service
|
Wants=blueman.service
|
||||||
#Wants=discord.service
|
|
||||||
Wants=dpms.service
|
Wants=dpms.service
|
||||||
Wants=dunst.service
|
Wants=dunst.service
|
||||||
Wants=element.service
|
Wants=element.service
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env blueman-applet
|
ExecStart=/usr/bin/env blueman-applet
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
BindsTo=autostart.target
|
|
||||||
After=windowmanager.target
|
|
||||||
|
|
||||||
ConditionPathExists=%h/.var/run/features/discord
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/env discord
|
|
||||||
PassEnvironment=DISPLAY
|
|
||||||
@@ -7,3 +7,4 @@ Type=oneshot
|
|||||||
ExecStart=/usr/bin/env xset s off
|
ExecStart=/usr/bin/env xset s off
|
||||||
ExecStart=/usr/bin/env xset dpms 0 0 300
|
ExecStart=/usr/bin/env xset dpms 0 0 300
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env dunst -config %h/.config/dunstrc
|
ExecStart=/usr/bin/env dunst -config %h/.config/dunstrc
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ ConditionPathExists=%h/.var/run/features/element
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env element-desktop
|
ExecStart=/usr/bin/env element-desktop
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
|
ExecStart=/usr/bin/env firefox --setDefaultBrowser -P %i
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env gnome-keyring-daemon --start --foreground --components secrets
|
ExecStart=/usr/bin/env gnome-keyring-daemon --start --foreground --components secrets
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ ConditionPathExists=%h/.var/run/features/gpg_agent
|
|||||||
Type=forking
|
Type=forking
|
||||||
ExecStart=/usr/bin/env gpg-agent --homedir %h/.gnupg --no-detach --daemon
|
ExecStart=/usr/bin/env gpg-agent --homedir %h/.gnupg --no-detach --daemon
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ ConditionPathExists=%h/.var/run/features/keepassx
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
|
ExecStart=/usr/bin/env keepassx --keyfile %h/.secret/main.key %h/.secret/main.kdbx
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -4,5 +4,7 @@ After=windowmanager.target
|
|||||||
ConditionPathExists=%h/.var/run/features/machine_is_laptop
|
ConditionPathExists=%h/.var/run/features/machine_is_laptop
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
|
ExecStart=/usr/bin/env bash -c 'grep "^${ACPI_LID_NAME}.*enabled" /proc/acpi/wakeup && echo " ${ACPI_LID_NAME}" | sudo tee /proc/acpi/wakeup'
|
||||||
|
RemainAfterExit=true
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ ConditionPathExists=%h/.var/run/features/nextcloud
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env nextcloud --background
|
ExecStart=/usr/bin/env nextcloud --background
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|
||||||
MemoryHigh=20%
|
MemoryHigh=20%
|
||||||
MemoryMax=30%
|
MemoryMax=30%
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env nm-applet
|
ExecStart=/usr/bin/env nm-applet
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env pasystray
|
ExecStart=/usr/bin/env pasystray
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env redshift-gtk -c %h/.config/redshift.conf
|
ExecStart=/usr/bin/env redshift-gtk -c %h/.config/redshift.conf
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env spotify
|
ExecStart=/usr/bin/env spotify
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ ConditionPathExists=%h/.var/run/features/steam
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env steam
|
ExecStart=/usr/bin/env steam
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ After=windowmanager.target
|
|||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
|
ExecStart=/usr/bin/env yubikey-touch-detector -libnotify
|
||||||
PassEnvironment=DISPLAY
|
PassEnvironment=DISPLAY
|
||||||
|
Restart=always
|
||||||
|
|||||||
317
grm/personal_projects.toml
Normal file
317
grm/personal_projects.toml
Normal file
@@ -0,0 +1,317 @@
|
|||||||
|
[[trees]]
|
||||||
|
root = "~/projects"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/rbackupd"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "git@github.com:hakoerber/rbackupd.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/cobbler-kickstart"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/cobbler-kickstart.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/postfix-grok-patterns"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/postfix-grok-patterns.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "upstream"
|
||||||
|
url = "https://github.com/whyscream/postfix-grok-patterns.git"
|
||||||
|
type = "https"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/syncrepo"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/syncrepo.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/pkgbuilds"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/pkgbuilds.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/openvpn-helper"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/openvpn-helper.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/wifiqr"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/wifi-qr.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/checkconn"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/checkconn.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "misc/xftwidth"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/xftwidth.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "upstream"
|
||||||
|
url = "https://github.com/vixus0/xftwidth"
|
||||||
|
type = "https"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "x-hidecursor"
|
||||||
|
remotes = []
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "git-repo-manager"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/git-repo-manager.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/git-repo-manager.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "talks"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/talks.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "container/openresty-oidc"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/container/openresty-oidc.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "container/acimaker"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/acimaker.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "private"
|
||||||
|
url = "git@code.sys.haktec.de:container/acimaker.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "container/drone-kaniko"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/container/drone-kaniko.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "upstream"
|
||||||
|
url = "https://github.com/banzaicloud/drone-kaniko"
|
||||||
|
type = "https"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "container/roundcube"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/container/roundcube.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "container/mycloud-homer"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/container/mycloud-homer.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "projects/misc/cobbler-kickstart"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/cobbler-kickstart.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "finance-auto-import"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/finance-auto-import.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "guitar_practice"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com/hakoerber/guitar-practice.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "picture-cleaner"
|
||||||
|
remotes = []
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "mycloud"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/mycloud.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "resume"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/resume.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "lea-michael-hochzeit"
|
||||||
|
remotes = []
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "builddoc"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/builddoc.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "blog"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/blog.hkoerber.de.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/blog.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "fizzbuzz"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/fizzbuzz.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "ggj/2018/the-lost-son"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com:niklas-heer/the-lost-son.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "ggj/2019-claim-your-world"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@github.com:theintroverts/claim-your-world.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "prometheus-restic-backblaze"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/prometheus-restic-backblaze.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/container/prometheus-restic-backblaze.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "dotfiles"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/dotfiles.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/dotfiles.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "packager"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/packager.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/packager.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "time-tracking"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/time-tracking.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hannes/time-tracking.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos]]
|
||||||
|
name = "aws-glacier-backup"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "github"
|
||||||
|
url = "ssh://git@github.com/hakoerber/aws-glacier-backup.git"
|
||||||
|
type = "ssh"
|
||||||
|
|
||||||
|
[[trees.repos.remotes]]
|
||||||
|
name = "origin"
|
||||||
|
url = "ssh://git@code.hkoerber.de:2222/hakoerber/aws-glacier-backup.git"
|
||||||
|
type = "ssh"
|
||||||
@@ -120,7 +120,6 @@ assign [class="^Spotify$"] $workspace9
|
|||||||
|
|
||||||
assign [class="^Google-chrome$"] $workspace7
|
assign [class="^Google-chrome$"] $workspace7
|
||||||
assign [class="^Chromium$"] $workspace7
|
assign [class="^Chromium$"] $workspace7
|
||||||
assign [class="^discord"] $workspace7
|
|
||||||
assign [class="^Steam"] $workspace5
|
assign [class="^Steam"] $workspace5
|
||||||
for_window [class="^Steam$"] move to workspace $workspace5
|
for_window [class="^Steam$"] move to workspace $workspace5
|
||||||
|
|
||||||
|
|||||||
22
packages.yml
22
packages.yml
@@ -141,7 +141,11 @@ packages:
|
|||||||
ubuntu: ["ghostscript", "enscript"]
|
ubuntu: ["ghostscript", "enscript"]
|
||||||
archlinux: ["ghostscript", "enscript"]
|
archlinux: ["ghostscript", "enscript"]
|
||||||
pandoc:
|
pandoc:
|
||||||
ubuntu: ["pandoc"]
|
ubuntu:
|
||||||
|
- pandoc
|
||||||
|
- texlive
|
||||||
|
- python3-sphinxcontrib.svg2pdfconverter # for html to pdf conversions
|
||||||
|
- texlive-latex-extra
|
||||||
archlinux: ["pandoc", "texlive-core", "texlive-fontsextra", "texlive-latexextra"]
|
archlinux: ["pandoc", "texlive-core", "texlive-fontsextra", "texlive-latexextra"]
|
||||||
libvirt:
|
libvirt:
|
||||||
ubuntu: ["virt-manager", "libvirt-daemon"]
|
ubuntu: ["virt-manager", "libvirt-daemon"]
|
||||||
@@ -305,8 +309,8 @@ packages:
|
|||||||
dnf:
|
dnf:
|
||||||
ubuntu: []
|
ubuntu: []
|
||||||
archlinux: []
|
archlinux: []
|
||||||
rust:
|
rustup:
|
||||||
ubuntu: ["rustc", "cargo"]
|
ubuntu: []
|
||||||
archlinux: ["rustup"]
|
archlinux: ["rustup"]
|
||||||
musescore:
|
musescore:
|
||||||
ubuntu: ["musescore3"]
|
ubuntu: ["musescore3"]
|
||||||
@@ -329,9 +333,6 @@ packages:
|
|||||||
man:
|
man:
|
||||||
ubuntu: ["man-db", "manpages"]
|
ubuntu: ["man-db", "manpages"]
|
||||||
archlinux: ["man-db", "man-pages"]
|
archlinux: ["man-db", "man-pages"]
|
||||||
discord:
|
|
||||||
ubuntu: []
|
|
||||||
archlinux: ["discord"]
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
ubuntu: ["nextcloud-desktop"]
|
ubuntu: ["nextcloud-desktop"]
|
||||||
archlinux: ["nextcloud-client"]
|
archlinux: ["nextcloud-client"]
|
||||||
@@ -374,6 +375,9 @@ packages:
|
|||||||
ncdu:
|
ncdu:
|
||||||
ubuntu: ["ncdu"]
|
ubuntu: ["ncdu"]
|
||||||
archlinux: ["ncdu"]
|
archlinux: ["ncdu"]
|
||||||
|
font-utils:
|
||||||
|
ubuntu: ["woff-tools", "woff2"]
|
||||||
|
archinux: ["woff2"]
|
||||||
|
|
||||||
remove:
|
remove:
|
||||||
mousepad:
|
mousepad:
|
||||||
@@ -394,3 +398,9 @@ packages:
|
|||||||
vim:
|
vim:
|
||||||
ubuntu: ["vim"]
|
ubuntu: ["vim"]
|
||||||
archlinux: ["gvim"]
|
archlinux: ["gvim"]
|
||||||
|
discord:
|
||||||
|
ubuntu: []
|
||||||
|
archlinux: ["discord"]
|
||||||
|
rust:
|
||||||
|
ubuntu: ["rustc", "cargo"]
|
||||||
|
archlinux: ["rust"]
|
||||||
|
|||||||
132
playbook.yml
132
playbook.yml
@@ -10,6 +10,12 @@
|
|||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
|
- name: read variables
|
||||||
|
include_vars:
|
||||||
|
file: variables.yml
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
distro: "{{ ansible_distribution|lower }}"
|
distro: "{{ ansible_distribution|lower }}"
|
||||||
tags:
|
tags:
|
||||||
@@ -385,10 +391,129 @@
|
|||||||
- machine.gpu is defined and machine.gpu == 'amd'
|
- machine.gpu is defined and machine.gpu == 'amd'
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: set go version
|
- name: create rust build user
|
||||||
set_fact:
|
user:
|
||||||
go_version: "1.17.1"
|
name: rust_build
|
||||||
|
home: /var/lib/rust_build
|
||||||
|
create_home: true
|
||||||
|
shell: /bin/bash
|
||||||
|
system: true
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: install rustup on ubuntu
|
||||||
|
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
args:
|
||||||
|
creates: /var/lib/rust_build/.cargo/bin/rustup
|
||||||
|
become: true
|
||||||
|
become_user: rust_build
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
|
||||||
|
- name: add rustup stable toolchain
|
||||||
|
shell: . ~/.cargo/env && rustup toolchain install stable && rustup default stable
|
||||||
|
become: true
|
||||||
|
become_user: rust_build
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: update rustup stable toolchain
|
||||||
|
shell: . ~/.cargo/env && rustup update stable
|
||||||
|
become: true
|
||||||
|
become_user: rust_build
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: add rustup nightly toolchain
|
||||||
|
shell: . ~/.cargo/env && rustup toolchain install nightly
|
||||||
|
become: true
|
||||||
|
become_user: rust_build
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: update rustup nightly toolchain
|
||||||
|
shell: . ~/.cargo/env && rustup update nightly
|
||||||
|
become: true
|
||||||
|
become_user: rust_build
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: build rust crates from crates.io
|
||||||
|
shell: |
|
||||||
|
set -o errexit
|
||||||
|
. ~/.cargo/env
|
||||||
|
|
||||||
|
rustup run {{ item.toolchain|default('stable') }} cargo install --version {{ item.version }} {{ item.crate }}
|
||||||
|
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||||
|
args:
|
||||||
|
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||||
|
become: true # do not build as root!
|
||||||
|
become_user: rust_build
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'crates.io'
|
||||||
|
|
||||||
|
- name: build rust crates from git
|
||||||
|
shell: |
|
||||||
|
set -o errexit
|
||||||
|
. ~/.cargo/env
|
||||||
|
rustup run {{ item.toolchain|default('stable') }} cargo install --git {{ item.url }} --branch {{ item.branch }}
|
||||||
|
args:
|
||||||
|
creates: /var/lib/rust_build/.cargo/bin/{{ item.binary }}
|
||||||
|
become: true # do not build as root!
|
||||||
|
become_user: rust_build
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'git'
|
||||||
|
|
||||||
|
- name: create target directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /usr/local/lib/binaries/
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0775'
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: move binaries for crates.io
|
||||||
|
shell: |
|
||||||
|
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }} /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||||
|
ln -s /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||||
|
args:
|
||||||
|
creates: /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||||
|
become: true
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'crates.io'
|
||||||
|
|
||||||
|
- name: move binaries for git
|
||||||
|
shell: |
|
||||||
|
mv /var/lib/rust_build/.cargo/bin/{{ item.binary }} /usr/local/lib/binaries/{{ item.binary }}
|
||||||
|
ln -s /usr/local/lib/binaries/{{ item.binary }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}
|
||||||
|
args:
|
||||||
|
creates: /usr/local/lib/binaries/{{ item.binary }}
|
||||||
|
become: true
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'git'
|
||||||
|
|
||||||
|
- name: link binaries for crates.io
|
||||||
|
file:
|
||||||
|
src: /usr/local/lib/binaries/{{ item.binary }}.{{ item.version }}
|
||||||
|
dest: /usr/local/bin/{{ item.binary }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
become: true
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'crates.io'
|
||||||
|
|
||||||
|
- name: link binaries for git
|
||||||
|
file:
|
||||||
|
src: /usr/local/lib/binaries/{{ item.binary }}
|
||||||
|
dest: /usr/local/bin/{{ item.binary }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
state: link
|
||||||
|
force: true
|
||||||
|
become: true
|
||||||
|
loop: "{{ cargo_crate_list }}"
|
||||||
|
when: item.source|default('crates.io') == 'git'
|
||||||
|
tags:
|
||||||
|
- rust_binaries
|
||||||
|
|
||||||
|
- block:
|
||||||
- name: stat go target directory
|
- name: stat go target directory
|
||||||
stat:
|
stat:
|
||||||
path: /usr/local/go-v{{ go_version }}
|
path: /usr/local/go-v{{ go_version }}
|
||||||
@@ -603,6 +728,7 @@
|
|||||||
become: true
|
become: true
|
||||||
become_user: "{{ user.name }}"
|
become_user: "{{ user.name }}"
|
||||||
with_items: "{{ users }}"
|
with_items: "{{ users }}"
|
||||||
|
no_log: True # less spam
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: user
|
loop_var: user
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
22
user.yml
22
user.yml
@@ -327,7 +327,6 @@
|
|||||||
|
|
||||||
- name: update vim plugins
|
- name: update vim plugins
|
||||||
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall'
|
command: sh -c 'PATH=/usr/local/go/bin:$PATH GOROOT=/usr/local/go GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +PlugUpdate +qall'
|
||||||
changed_when: false
|
|
||||||
register: vim_plugin_update
|
register: vim_plugin_update
|
||||||
changed_when: vim_plugin_update.stderr != ""
|
changed_when: vim_plugin_update.stderr != ""
|
||||||
tags: [update]
|
tags: [update]
|
||||||
@@ -365,6 +364,14 @@
|
|||||||
tags: [update]
|
tags: [update]
|
||||||
tags: [vim-plugins]
|
tags: [vim-plugins]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: install rustup on ubuntu
|
||||||
|
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
|
||||||
|
args:
|
||||||
|
creates: ~/.cargo/bin/rustup
|
||||||
|
when: distro == 'ubuntu'
|
||||||
|
tags: [rust]
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: create firefox directories
|
- name: create firefox directories
|
||||||
firefox_profile:
|
firefox_profile:
|
||||||
@@ -469,10 +476,6 @@
|
|||||||
- firefox
|
- firefox
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: set portfolio performance version
|
|
||||||
set_fact:
|
|
||||||
portfolio_performace_version: "0.55.0"
|
|
||||||
|
|
||||||
- name: look of current installation
|
- name: look of current installation
|
||||||
stat:
|
stat:
|
||||||
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
|
path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}
|
||||||
@@ -534,10 +537,6 @@
|
|||||||
- portfolio-performance
|
- portfolio-performance
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: set kubectl version
|
|
||||||
set_fact:
|
|
||||||
kubectl_version: v1.22.2
|
|
||||||
|
|
||||||
- name: get current stable version
|
- name: get current stable version
|
||||||
uri:
|
uri:
|
||||||
url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
|
url: https://storage.googleapis.com/kubernetes-release/release/stable.txt
|
||||||
@@ -580,10 +579,6 @@
|
|||||||
- kubectl
|
- kubectl
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: set terraform version
|
|
||||||
set_fact:
|
|
||||||
terraform_version: 1.0.2
|
|
||||||
|
|
||||||
- name: stat current terraform binary
|
- name: stat current terraform binary
|
||||||
stat:
|
stat:
|
||||||
path: "/home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}"
|
path: "/home/{{ user.name }}/.opt/terraform-v{{ terraform_version }}"
|
||||||
@@ -627,6 +622,7 @@
|
|||||||
- name: get terraform version info
|
- name: get terraform version info
|
||||||
command: /home/{{ user.name }}/.optbin/terraform version -json
|
command: /home/{{ user.name }}/.optbin/terraform version -json
|
||||||
register: terraform_version_output
|
register: terraform_version_output
|
||||||
|
check_mode: false
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: parse terraform version output
|
- name: parse terraform version output
|
||||||
|
|||||||
28
variables.yml
Normal file
28
variables.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
terraform_version: 1.0.2
|
||||||
|
kubectl_version: v1.22.3
|
||||||
|
go_version: "1.17.1"
|
||||||
|
portfolio_performace_version: "0.55.0"
|
||||||
|
cargo_crate_list:
|
||||||
|
- crate: just
|
||||||
|
binary: just
|
||||||
|
version: 0.10.2
|
||||||
|
- crate: ripgrep
|
||||||
|
binary: rg
|
||||||
|
version: 13.0.0
|
||||||
|
- crate: fd-find
|
||||||
|
binary: fd
|
||||||
|
version: 8.2.1
|
||||||
|
- crate: bat
|
||||||
|
binary: bat
|
||||||
|
version: 0.18.3
|
||||||
|
- crate: exa
|
||||||
|
binary: exa
|
||||||
|
version: 0.10.1
|
||||||
|
- crate: watchexec-cli
|
||||||
|
binary: watchexec
|
||||||
|
version: 1.17.1
|
||||||
|
- url: https://github.com/hakoerber/git-repo-manager
|
||||||
|
binary: grm
|
||||||
|
branch: master
|
||||||
|
source: git
|
||||||
|
toolchain: nightly
|
||||||
@@ -71,6 +71,8 @@ Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
|||||||
|
|
||||||
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
Plug 'evanleck/vim-svelte', {'branch': 'main'}
|
||||||
|
|
||||||
|
Plug 'cespare/vim-toml', { 'branch': 'main' }
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
|
|
||||||
@@ -318,6 +320,7 @@ endfunction
|
|||||||
autocmd BufWritePre * :call DeleteTrailingWS()
|
autocmd BufWritePre * :call DeleteTrailingWS()
|
||||||
|
|
||||||
autocmd FileType yaml set shiftwidth=2
|
autocmd FileType yaml set shiftwidth=2
|
||||||
|
autocmd FileType toml set shiftwidth=2
|
||||||
set completeopt-=preview
|
set completeopt-=preview
|
||||||
let g:ycm_add_preview_to_completeopt = 0
|
let g:ycm_add_preview_to_completeopt = 0
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ source /etc/profile
|
|||||||
_path=(
|
_path=(
|
||||||
"$HOME/bin"
|
"$HOME/bin"
|
||||||
"$HOME/.optbin"
|
"$HOME/.optbin"
|
||||||
|
"$HOME/.cargo/bin"
|
||||||
)
|
)
|
||||||
|
|
||||||
for part in ${_path[@]} ; do
|
for part in ${_path[@]} ; do
|
||||||
@@ -53,7 +54,6 @@ mkdir -p "${FEATURE_DIR}"
|
|||||||
[[ $MACHINE_HAS_NEXTCLOUD == "true" ]] && touch "${FEATURE_DIR}"/nextcloud
|
[[ $MACHINE_HAS_NEXTCLOUD == "true" ]] && touch "${FEATURE_DIR}"/nextcloud
|
||||||
[[ $MACHINE_HAS_KEEPASSX == "true" ]] && touch "${FEATURE_DIR}"/keepassx
|
[[ $MACHINE_HAS_KEEPASSX == "true" ]] && touch "${FEATURE_DIR}"/keepassx
|
||||||
[[ $MACHINE_HAS_STEAM == "true" ]] && touch "${FEATURE_DIR}"/steam
|
[[ $MACHINE_HAS_STEAM == "true" ]] && touch "${FEATURE_DIR}"/steam
|
||||||
[[ $MACHINE_HAS_DISCORD == "true" ]] && touch "${FEATURE_DIR}"/discord
|
|
||||||
[[ $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
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
|
|
||||||
### COMMON OPERATIONS
|
### BETTER COMMANDS
|
||||||
alias ll='ls -AlFh'
|
alias ls="exa --oneline --icons --group-directories-first"
|
||||||
alias la='ls -A'
|
alias ll='ls --all --long --classify --group --modified --time-style=long-iso --git'
|
||||||
|
alias la='ls --all'
|
||||||
|
|
||||||
alias spm="sudo pacman"
|
alias spm="sudo pacman"
|
||||||
|
|
||||||
@@ -31,8 +32,6 @@ alias tmux="tmux -2"
|
|||||||
alias chmod="chmod -c"
|
alias chmod="chmod -c"
|
||||||
alias chown="chown -c"
|
alias chown="chown -c"
|
||||||
|
|
||||||
alias ls="ls --group-directories-first --classify --color=auto"
|
|
||||||
|
|
||||||
alias diff="diff --color=auto"
|
alias diff="diff --color=auto"
|
||||||
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|||||||
Reference in New Issue
Block a user