From 7fbbe7b80c4e233154730e32382687d68bbbd595 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 21 Mar 2026 19:31:10 +0100 Subject: [PATCH] feat: turn off after 30min inactivity --- configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4d1b125..d1df5e7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -39,7 +39,7 @@ in # timezone time.timeZone = "Europe/Madrid"; - # kde plasma under x11 + # BELOW IS THE KDE PLASMA CONFIG ZONE services.xserver.enable = true; services.displayManager.sddm.enable = true; # services.xserver.desktopManager.defaultSession = "plasma"; @@ -54,7 +54,7 @@ in kwriteconfig5 --file kwinrc --group Compositing --key AnimationSpeed 2 ''; - # lock down plasma desktop for the user + # kde kiosk configs + disable wallpaper configuration for all users environment.etc = { "xdg/kdeglobals".text = '' [KDE Action Restrictions][$i] @@ -69,6 +69,11 @@ in kcm_wallpaper=false ''; }; + + services.logind.extraConfig = '' + IdleAction=poweroff + IdleActionSec=30min + ''; services.pipewire.enable = true;