fully disable DPMS and screen blanking

This commit is contained in:
Buliway 2025-01-25 07:36:11 +03:00
parent 51d24fa43c
commit d657c43851
2 changed files with 11 additions and 5 deletions

View file

@ -27,6 +27,7 @@
# "nekoray"
# "obsidian"
# "planify"
# "xset s off -dpms" # Отменить затухание экрана через X минут
"spice-vdagent" # Для виртуалки
];

View file

@ -1,8 +1,3 @@
# Не совсем понял как менять тему в sddm. Но мне оно не надо. Оставлю ссылки
# https://www.reddit.com/r/NixOS/comments/14sb6s2/sddm_themes_finally_did_a_dumb_workaround/
# https://www.reddit.com/r/NixOS/comments/14dlvbr/sddm_theme/
{ pkgs, ... }: {
services.displayManager = {
@ -36,6 +31,16 @@
i3.enable = true; # i3-gaps доступен в стоке в новых версиях
};
# Fully disable DPMS and screen blanking
config = ''
Section "Extensions"
Option "DPMS" "false"
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
EndSection
'';
xkb = {
layout = "us,ru";
variant = "";