dotfiles/tasks/power-saving.yml
Jake Howard 94d483e7b7
Stop manually skipping packages
It's now a bit faster, and I can live with it. This is also much simpler now!
2020-06-15 12:33:03 +01:00

47 lines
934 B
YAML

- name: Install power-saving stuff
aur:
name: "{{ item }}"
become: true
become_user: aur_builder
loop:
- acpi
- ethtool
- nbfc
- powertop
- psensor
- smartmontools
- sysstat
- tlp
- xfce4-power-manager
- name: Enable TLP services
systemd:
name: tlp
enabled: true
state: started
- name: Enable NBFC
systemd:
name: nbfc
enabled: true
state: started
- name: Install TLP config
copy:
src: ./files/tlp.conf
dest: /etc/default/tlp
mode: 0644
- name: Create XFCE4 power manager config directory
file:
path: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml"
state: directory
owner: "{{ user }}"
mode: 0755
- name: Install XFCE4 power manager config
copy:
src: ./files/xfce4-power-manager.xml
dest: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml"
owner: "{{ user }}"
mode: 0644