Update laptop configuration
This commit is contained in:
parent
25ca753bb9
commit
556acd2480
6 changed files with 15 additions and 37 deletions
|
|
@ -51,11 +51,11 @@
|
||||||
state: started
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
- name: start iwd service
|
- name: restart iwd
|
||||||
become: true
|
become: true
|
||||||
systemd:
|
systemd:
|
||||||
name: iwd
|
name: iwd
|
||||||
state: started
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
when: platform == "laptop"
|
when: platform == "laptop"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,17 +33,6 @@
|
||||||
state: touch
|
state: touch
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: copy powertop service
|
|
||||||
become: true
|
|
||||||
template:
|
|
||||||
src: 'templates/{{ platform }}/powertop.j2'
|
|
||||||
dest: '/etc/systemd/system/powertop.service'
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
notify: restart powertop
|
|
||||||
when: platform == "laptop"
|
|
||||||
|
|
||||||
- name: create alacritty configuration dir
|
- name: create alacritty configuration dir
|
||||||
file:
|
file:
|
||||||
path: '{{ xdg_config_dir }}/alacritty'
|
path: '{{ xdg_config_dir }}/alacritty'
|
||||||
|
|
@ -60,21 +49,20 @@
|
||||||
name: fstrim.timer
|
name: fstrim.timer
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# TODO: setup discrete GPU and remove this configuration
|
# TODO: set fan settings to `quiet` with smbios-thermal-ctl
|
||||||
- name: disable nvidia GPU
|
|
||||||
|
- name: remove old configuration files
|
||||||
block:
|
block:
|
||||||
- name: create udev rule
|
- name: create udev rule
|
||||||
become: true
|
become: true
|
||||||
template:
|
file:
|
||||||
src: 'templates/{{ platform }}/udev.j2'
|
path: '/etc/udev/rules.d/00-remove-nvidia.rules'
|
||||||
dest: '/etc/udev/rules.d/00-remove-nvidia.rules'
|
state: absent
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
- name: blacklist kernel module
|
- name: blacklist kernel module
|
||||||
become: true
|
become: true
|
||||||
template:
|
file:
|
||||||
src: 'templates/{{ platform }}/nouveau-blacklist.j2'
|
path: '/etc/modprobe.d/blacklist-nouveau.conf'
|
||||||
dest: '/etc/modprobe.d/blacklist-nouveau.conf'
|
state: absent
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
when: platform == "laptop"
|
when: platform == "laptop"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
blacklist nouveau
|
|
||||||
options nouveau modeset=0
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Powertop tunings
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/usr/bin/powertop --auto-tune
|
|
||||||
RemainAfterExit=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
# Remove NVIDIA VGA/3D controller devices
|
|
||||||
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
platform_packages:
|
platform_packages:
|
||||||
- iwd
|
- iwd
|
||||||
- powertop
|
- nvidia
|
||||||
|
- nvidia-prime
|
||||||
|
- nvidia-utils
|
||||||
|
- lib32-nvidia-utils
|
||||||
|
|
||||||
vpn_ip: '10.0.0.2'
|
vpn_ip: '10.0.0.2'
|
||||||
vpn_subnet: '24'
|
vpn_subnet: '24'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue