Split platform vars into directories
This commit is contained in:
parent
aafd7eaf75
commit
d148eca9b7
5 changed files with 46 additions and 46 deletions
|
|
@ -14,9 +14,11 @@
|
||||||
when: is_laptop.rc == 0
|
when: is_laptop.rc == 0
|
||||||
|
|
||||||
- name: Load desktop specific vars
|
- name: Load desktop specific vars
|
||||||
ansible.builtin.include_vars: 'vars/desktop.yml'
|
ansible.builtin.include_vars:
|
||||||
|
dir: vars/desktop
|
||||||
when: platform == "desktop"
|
when: platform == "desktop"
|
||||||
|
|
||||||
- name: Load laptop specific vars
|
- name: Load laptop specific vars
|
||||||
ansible.builtin.include_vars: 'vars/laptop.yml'
|
ansible.builtin.include_vars:
|
||||||
|
dir: vars/laptop
|
||||||
when: platform == "laptop"
|
when: platform == "laptop"
|
||||||
|
|
|
||||||
19
vars/desktop/system.yml
Normal file
19
vars/desktop/system.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
platform_packages: []
|
||||||
|
|
||||||
|
modprobe_templates:
|
||||||
|
- src: 'templates/desktop/modprobe/99-amdgpu.conf.j2'
|
||||||
|
dest: '/etc/modprobe.d/99-amdgpu.conf'
|
||||||
|
|
||||||
|
mkinitcpio_templates:
|
||||||
|
- src: 'templates/desktop/mkinitcpio/1-modules.conf.j2'
|
||||||
|
dest: '/etc/mkinitcpio.conf.d/1-amdgpu.conf'
|
||||||
|
|
||||||
|
- src: 'templates/desktop/mkinitcpio/linux.preset.j2'
|
||||||
|
dest: '/etc/mkinitcpio.d/linux.preset'
|
||||||
|
|
||||||
|
- src: 'templates/desktop/mkinitcpio/linux-lts.preset.j2'
|
||||||
|
dest: '/etc/mkinitcpio.d/linux-lts.preset'
|
||||||
|
|
||||||
|
boot_configuration:
|
||||||
|
disk: /dev/sdc
|
||||||
|
partition: 1
|
||||||
|
|
@ -1,23 +1,3 @@
|
||||||
platform_packages: []
|
|
||||||
|
|
||||||
modprobe_templates:
|
|
||||||
- src: 'templates/desktop/modprobe/99-amdgpu.conf.j2'
|
|
||||||
dest: '/etc/modprobe.d/99-amdgpu.conf'
|
|
||||||
|
|
||||||
mkinitcpio_templates:
|
|
||||||
- src: 'templates/desktop/mkinitcpio/1-modules.conf.j2'
|
|
||||||
dest: '/etc/mkinitcpio.conf.d/1-amdgpu.conf'
|
|
||||||
|
|
||||||
- src: 'templates/desktop/mkinitcpio/linux.preset.j2'
|
|
||||||
dest: '/etc/mkinitcpio.d/linux.preset'
|
|
||||||
|
|
||||||
- src: 'templates/desktop/mkinitcpio/linux-lts.preset.j2'
|
|
||||||
dest: '/etc/mkinitcpio.d/linux-lts.preset'
|
|
||||||
|
|
||||||
boot_configuration:
|
|
||||||
disk: /dev/sdc
|
|
||||||
partition: 1
|
|
||||||
|
|
||||||
# TODO: scope variables to their destination file
|
# TODO: scope variables to their destination file
|
||||||
vpn_default:
|
vpn_default:
|
||||||
ip: '10.0.0.3'
|
ip: '10.0.0.3'
|
||||||
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'
|
||||||
|
|
@ -1,27 +1,3 @@
|
||||||
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'
|
|
||||||
|
|
||||||
vpn_default:
|
vpn_default:
|
||||||
ip: '10.0.0.2'
|
ip: '10.0.0.2'
|
||||||
prefix: '24'
|
prefix: '24'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue