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; + } ]; }; };