Compare commits
12 Commits
fd3c106b29
...
442e6e0986
| Author | SHA1 | Date | |
|---|---|---|---|
| 442e6e0986 | |||
| be07205cbb | |||
| 0c1ddd96c3 | |||
| abd7b450c9 | |||
| 7b92000dde | |||
| 7f5e51651a | |||
| f9cbe9fbea | |||
| ab75df4095 | |||
| 2668f4ffad | |||
| 1e706c8ed9 | |||
| 4f0f775a5d | |||
| c737c3a0f4 |
@@ -1,69 +0,0 @@
|
|||||||
font_size: 11
|
|
||||||
letter_space: 0
|
|
||||||
terminal_binary: alacritty
|
|
||||||
|
|
||||||
users:
|
|
||||||
- name: hannes-work
|
|
||||||
group: hak
|
|
||||||
vt: 1
|
|
||||||
firefox_profiles:
|
|
||||||
- name: 3wmp9hdb.default-1565075150057
|
|
||||||
manage_css: true
|
|
||||||
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"
|
|
||||||
has_yubikey: false
|
|
||||||
- name: hannes-private
|
|
||||||
group: tpp
|
|
||||||
vt: 2
|
|
||||||
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"
|
|
||||||
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_HAS_KEEPASSX: "true"
|
|
||||||
MACHINE_RESOLUTION_X: "1920"
|
|
||||||
MACHINE_RESOLUTION_Y: "1080"
|
|
||||||
@@ -11,7 +11,7 @@ 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
|
[[ -e './.git' ]] && 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
|
||||||
@@ -47,9 +47,14 @@ sudowrap() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cache_updated=0
|
||||||
_install() {
|
_install() {
|
||||||
_package="$1" ; shift
|
_package="$1" ; shift
|
||||||
if [[ $NAME == "Ubuntu" ]] ; then
|
if [[ $NAME == "Ubuntu" ]] ; then
|
||||||
|
if ! (( cache_updated )) ; then
|
||||||
|
apt-get update
|
||||||
|
cache_updated=1
|
||||||
|
fi
|
||||||
sudowrap apt-get install --assume-yes "${_package}"
|
sudowrap apt-get install --assume-yes "${_package}"
|
||||||
elif [[ $NAME == "Arch Linux" ]] ; then
|
elif [[ $NAME == "Arch Linux" ]] ; then
|
||||||
sudowrap pacman -S --noconfirm "${_package}"
|
sudowrap pacman -S --noconfirm "${_package}"
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ packages:
|
|||||||
archlinux: ["lsof"]
|
archlinux: ["lsof"]
|
||||||
iptables:
|
iptables:
|
||||||
ubuntu: ["iptables"]
|
ubuntu: ["iptables"]
|
||||||
archlinux: ["iptables"]
|
archlinux: ["iptables-nft"]
|
||||||
pwgen:
|
pwgen:
|
||||||
ubuntu: ["pwgen"]
|
ubuntu: ["pwgen"]
|
||||||
archlinux: ["pwgen"]
|
archlinux: ["pwgen"]
|
||||||
@@ -326,9 +326,6 @@ packages:
|
|||||||
rofi:
|
rofi:
|
||||||
ubuntu: ["rofi"]
|
ubuntu: ["rofi"]
|
||||||
archlinux: ["rofi"]
|
archlinux: ["rofi"]
|
||||||
anki:
|
|
||||||
ubuntu: ["anki"]
|
|
||||||
archlinux: ["anki"]
|
|
||||||
imv:
|
imv:
|
||||||
ubuntu: ["imv"]
|
ubuntu: ["imv"]
|
||||||
archlinux: ["imv"]
|
archlinux: ["imv"]
|
||||||
|
|||||||
@@ -149,12 +149,9 @@
|
|||||||
include_vars:
|
include_vars:
|
||||||
file: packages.yml
|
file: packages.yml
|
||||||
|
|
||||||
- name: enable neovim ppa
|
- name: force-update iptables to iptables-nft on arch
|
||||||
apt_repository:
|
shell: pacman -Q iptables-nft || yes | pacman -S iptables-nft
|
||||||
repo: 'ppa:neovim-ppa/stable'
|
changed_when: false
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
||||||
when: distro == 'ubuntu'
|
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
defined_packages: "{{ packages|json_query('keys(list)') }}"
|
defined_packages: "{{ packages|json_query('keys(list)') }}"
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
reset: true
|
|
||||||
outputs:
|
|
||||||
- name: eDP-1
|
|
||||||
opts:
|
|
||||||
mode: 1920x1080
|
|
||||||
scale: 0.7x0.7
|
|
||||||
pos: "0x0" # beware of hex
|
|
||||||
- name: DP-1-1
|
|
||||||
primary: True
|
|
||||||
opts:
|
|
||||||
mode: 1920x1080
|
|
||||||
right-of: eDP-1
|
|
||||||
reset: true
|
|
||||||
- name: DP-1-2
|
|
||||||
opts:
|
|
||||||
mode: 1920x1080
|
|
||||||
right-of: DP-1-1
|
|
||||||
reset: true
|
|
||||||
@@ -41,18 +41,7 @@ test_ares() {
|
|||||||
sed -i '"'"'s/^#\?\(CacheDir.*\)/\1\nCacheDir = \/var\/cache\/pacman\/pkg_host\//'"'"' /etc/pacman.conf
|
sed -i '"'"'s/^#\?\(CacheDir.*\)/\1\nCacheDir = \/var\/cache\/pacman\/pkg_host\//'"'"' /etc/pacman.conf
|
||||||
|
|
||||||
pacman -Syu --noconfirm python3
|
pacman -Syu --noconfirm python3
|
||||||
cd $(mktemp -d)
|
mkdir /var/cache/pacman/pkg_host/
|
||||||
tar xf /tmp/dotfiles.tar.gz -C .
|
|
||||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
|
||||||
read -p "Done, [return] to continue "
|
|
||||||
'
|
|
||||||
}
|
|
||||||
|
|
||||||
test_tb_hak() {
|
|
||||||
docker pull docker.io/library/ubuntu:18.04
|
|
||||||
docker run -ti --rm -v ${tmpdir}/dotfiles.tar.gz:/tmp/dotfiles.tar.gz:ro --hostname tb-hak docker.io/library/ubuntu:18.04 sh -c '
|
|
||||||
set -o errexit
|
|
||||||
|
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
tar xf /tmp/dotfiles.tar.gz -C .
|
tar xf /tmp/dotfiles.tar.gz -C .
|
||||||
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
ANSIBLE_EXTRA_ARGS="-e manage_services=false" ./install.sh
|
||||||
@@ -70,6 +59,15 @@ test_neptune() {
|
|||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case "${1:-all}" in
|
||||||
|
ares)
|
||||||
test_ares
|
test_ares
|
||||||
test_tb_hak
|
;;
|
||||||
|
neptune)
|
||||||
test_neptune
|
test_neptune
|
||||||
|
;;
|
||||||
|
all)
|
||||||
|
test_ares
|
||||||
|
test_neptune
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|||||||
4
user.yml
4
user.yml
@@ -20,8 +20,6 @@
|
|||||||
- sudo
|
- sudo
|
||||||
- dip
|
- dip
|
||||||
- plugdev
|
- plugdev
|
||||||
- lpadmin
|
|
||||||
- sambashare
|
|
||||||
- docker
|
- docker
|
||||||
- libvirt
|
- libvirt
|
||||||
when: distro == 'ubuntu'
|
when: distro == 'ubuntu'
|
||||||
@@ -390,7 +388,7 @@
|
|||||||
|
|
||||||
- name: clean up temp directory
|
- name: clean up temp directory
|
||||||
file:
|
file:
|
||||||
path: "{{ tempdir.path }"
|
path: "{{ tempdir.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: install portfolio performance
|
- name: install portfolio performance
|
||||||
|
|||||||
Reference in New Issue
Block a user