Split platform vars into directories
This commit is contained in:
parent
aafd7eaf75
commit
d148eca9b7
5 changed files with 46 additions and 46 deletions
23
vars/laptop/system.yml
Normal file
23
vars/laptop/system.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
platform_packages:
|
||||
- iwd
|
||||
- nvidia
|
||||
- nvidia-prime
|
||||
- nvidia-utils
|
||||
- lib32-nvidia-utils
|
||||
|
||||
boot_configuration:
|
||||
disk: /dev/nvme0n1
|
||||
partition: 1
|
||||
|
||||
mkinitcpio_templates:
|
||||
- src: 'templates/laptop/mkinitcpio/1-modules.conf.j2'
|
||||
dest: '/etc/mkinitcpio.conf.d/1-modules.conf'
|
||||
|
||||
- src: 'templates/laptop/mkinitcpio/2-hooks.conf.j2'
|
||||
dest: '/etc/mkinitcpio.conf.d/2-hooks.conf'
|
||||
|
||||
- src: 'templates/laptop/mkinitcpio/linux.preset.j2'
|
||||
dest: '/etc/mkinitcpio.d/linux.preset'
|
||||
|
||||
- src: 'templates/laptop/mkinitcpio/linux-lts.preset.j2'
|
||||
dest: '/etc/mkinitcpio.d/linux-lts.preset'
|
||||
44
vars/laptop/vpn.yml
Normal file
44
vars/laptop/vpn.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
vpn_default:
|
||||
ip: '10.0.0.2'
|
||||
prefix: '24'
|
||||
interface: 'wg0'
|
||||
dns: '10.0.0.1'
|
||||
domains:
|
||||
- ~vpn.fudiggity.nl
|
||||
- ~transmission.fudiggity.nl
|
||||
|
||||
public_key_path: '{{ vpn_config_dir }}/keys/public/default/laptop.pub'
|
||||
private_key_path: '{{ vpn_config_dir }}/keys/private/default/laptop.key'
|
||||
|
||||
peers:
|
||||
- name: 'zeus'
|
||||
allowed_ips:
|
||||
- address: '10.0.0.0/24'
|
||||
create_route: false
|
||||
- address: '172.16.238.0/24'
|
||||
create_route: true
|
||||
endpoint: 'fudiggity.nl:51902'
|
||||
public_key: 'CeybSMpJiicXmndIuhe89Bay3z3PEdYNyAwIFsacBEo='
|
||||
preshared_key_path: '{{ vpn_config_dir }}/keys/private/default/preshared-zeus.psk'
|
||||
preshared_key_source_path: 'files/laptop/wireguard/default/preshared.psk'
|
||||
|
||||
vpn_media:
|
||||
ip: '10.0.1.2'
|
||||
prefix: '24'
|
||||
interface: 'wg1'
|
||||
dns: '10.0.1.1'
|
||||
domains:
|
||||
- ~media-vpn.fudiggity.nl
|
||||
|
||||
public_key_path: '{{ vpn_config_dir }}/keys/public/media/laptop.pub'
|
||||
private_key_path: '{{ vpn_config_dir }}/keys/private/media/laptop.key'
|
||||
|
||||
peers:
|
||||
- name: 'zeus-media'
|
||||
allowed_ips:
|
||||
- address: '10.0.1.0/24'
|
||||
create_route: false
|
||||
endpoint: 'fudiggity.nl:51903'
|
||||
public_key: 'EugKeo63C5N5kz9ShMHtYswO9Qh6mE00MtfLSFmqqjg='
|
||||
preshared_key_path: '{{ vpn_config_dir }}/keys/private/media/preshared-zeus.psk'
|
||||
preshared_key_source_path: 'files/laptop/wireguard/media/preshared.psk'
|
||||
Loading…
Add table
Add a link
Reference in a new issue