From 5fd3c7825b324bb96b3539a70bf16176195faeac Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Fri, 15 May 2026 02:41:20 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20d=C3=A9sactivation=20automatique=20de?= =?UTF-8?q?=20la=20veille?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nixos/configuration.nix | 6 ++++++ programs/i3.nix | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index efd09c5..8925cfa 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -129,6 +129,12 @@ openFirewall = true; }; + # Désactive la mise en veille automatique du système (suspend/hibernate à l'idle) + services.logind = { + lidSwitchExternalPower = "ignore"; # ignorer fermeture couvercle quand branché + settings.Login.IdleAction = "ignore"; + }; + # List services that you want to enable: services.nscd.enable = true; services.tlp.enable = true; diff --git a/programs/i3.nix b/programs/i3.nix index 056deed..aa7eed1 100644 --- a/programs/i3.nix +++ b/programs/i3.nix @@ -130,6 +130,12 @@ # docker run -d --net traefik --ip 172.10.0.10 --restart always -v /var/run/docker.sock:/var/run/docker.sock:ro --name traefik -p 80:80 -p 8080:8080 traefik:2.4.9 --api.insecure=true --providers.docker # { command = "docker start traefik"; notification = false; } + + # Désactive l'extinction automatique de l'écran (DPMS) et l'économiseur d'écran X11 + { + command = "xset s off -dpms"; + notification = false; + } ]; }; };