Update laptop configuration
This commit is contained in:
parent
25ca753bb9
commit
556acd2480
6 changed files with 15 additions and 37 deletions
|
|
@ -33,17 +33,6 @@
|
|||
state: touch
|
||||
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
|
||||
file:
|
||||
path: '{{ xdg_config_dir }}/alacritty'
|
||||
|
|
@ -60,21 +49,20 @@
|
|||
name: fstrim.timer
|
||||
enabled: true
|
||||
|
||||
# TODO: setup discrete GPU and remove this configuration
|
||||
- name: disable nvidia GPU
|
||||
# TODO: set fan settings to `quiet` with smbios-thermal-ctl
|
||||
|
||||
- name: remove old configuration files
|
||||
block:
|
||||
- name: create udev rule
|
||||
become: true
|
||||
template:
|
||||
src: 'templates/{{ platform }}/udev.j2'
|
||||
dest: '/etc/udev/rules.d/00-remove-nvidia.rules'
|
||||
owner: root
|
||||
group: root
|
||||
file:
|
||||
path: '/etc/udev/rules.d/00-remove-nvidia.rules'
|
||||
state: absent
|
||||
- name: blacklist kernel module
|
||||
become: true
|
||||
template:
|
||||
src: 'templates/{{ platform }}/nouveau-blacklist.j2'
|
||||
dest: '/etc/modprobe.d/blacklist-nouveau.conf'
|
||||
file:
|
||||
path: '/etc/modprobe.d/blacklist-nouveau.conf'
|
||||
state: absent
|
||||
owner: root
|
||||
group: root
|
||||
when: platform == "laptop"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue