system-formula/system/sleep.sls

21 lines
448 B
Plaintext

{% from "system/map.jinja" import system_settings with context %}
{% set settings = system_settings['sleep'] %}
{% if settings.disable %}
disable_sleep_target:
service.masked:
- name: 'sleep.target'
disable_suspend_target:
service.masked:
- name: 'suspend.target'
disable_hibernate_target:
service.masked:
- name: 'hibernate.target'
disable_hybrid-sleep_target:
service.masked:
- name: 'hybrid-sleep.target'
{% endif %}