From d1ab7d9a69a8c91d3db235237f01ef8263c1769c Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Thu, 2 Apr 2026 09:16:08 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20blank=20phantom-ship=20display=20after?= =?UTF-8?q?=2060s=20idle=20=F0=9F=96=A5=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same consoleblank + backlight-off pattern as sunken-ship. --- nixos/hosts/phantom-ship.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nixos/hosts/phantom-ship.nix b/nixos/hosts/phantom-ship.nix index d2a236e..809ae48 100644 --- a/nixos/hosts/phantom-ship.nix +++ b/nixos/hosts/phantom-ship.nix @@ -34,6 +34,22 @@ in networking.firewall.trustedInterfaces = [ "enp0s31f6" ]; hardware.enableRedistributableFirmware = true; # iwlwifi (Intel 8260) + GPU + BT firmware + + boot.kernelParams = [ "consoleblank=60" ]; # blank TTY after 60s to reduce burn-in + + # Turn off panel backlight after boot so the screen actually dims. + systemd.services.server-backlight-off = { + description = "Turn off panel backlight after console idle (reduce burn-in)"; + after = [ "multi-user.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig.Type = "oneshot"; + script = '' + ${pkgs.coreutils}/bin/sleep 65 + for d in /sys/class/backlight/*; do + [ -f "$d/brightness" ] && echo 0 > "$d/brightness" 2>/dev/null || true + done + ''; + }; time.timeZone = "Europe/Copenhagen"; nix.settings.experimental-features = [ "nix-command" "flakes" ];