tlp, attempt to automate enabling with runit.

This commit is contained in:
2026-08-02 12:28:24 -07:00
parent fa732599fe
commit b051bce767
2 changed files with 21 additions and 3 deletions
+12
View File
@@ -20,6 +20,7 @@
- name: Workstation | Linux | Software | TLP | Facts (Artix)
set_fact:
ppd_package: "power-profiles-daemon power-profiles-daemon-runit"
tlp: tlp tlp-runit
when: ansible_pkg_mgr == "pacman"
and ansible_service_mgr == "runit"
@@ -52,6 +53,17 @@
- "{{ tlp_smart }}"
update_cache: yes
- name: Workstation | Linux | Software | TLP | Enable
service:
name: tlp
state: started
enabled: yes
when: ansible_service_mgr not in ("runit")
- name: Workstation | Linux | Software | TLP | Enable (runit, Artix)
shell: "ln -s {{runit_script_dir }}/tlp {{ runit_service_dir }}/tlp"
when: ansible_service_mgr == "runit"
## Configuration ##
# Device choices: