diff --git a/modules/applications/caelestia.nix b/modules/applications/caelestia.nix index ed78607..5c05b2b 100644 --- a/modules/applications/caelestia.nix +++ b/modules/applications/caelestia.nix @@ -10,6 +10,28 @@ quickshell # we have it but adding it there solves "WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.quickshell'")" ]; }; + flake.homeModules.caelestia-desktop = {lib, ...}: { + # for some reason nvidia drivers or I don't know what break the lock. (activate even when use, crash, etc.) + programs.caelestia.settings.general.idle = { + lockBeforeSleep = lib.mkForce false; + inhibitWhenAudio = true; + timeouts = lib.mkForce [ + { + timeout = 180000; + idleAction = "lock"; + } + { + timeout = 300; + idleAction = "dpms off"; # what's that? + returnAction = "dpms on"; + } + { + timeout = 600; + idleAction = ["systemctl" "suspend-then-hibernate"]; + } + ]; + }; + }; flake.homeModules.caelestia = _: let sisyphe = ../../assets/sisyphe.gif; pepe-music = ../../assets/pepe-music.gif; diff --git a/modules/hosts/desktop.nix b/modules/hosts/desktop.nix index 99a61cf..2d4aed0 100644 --- a/modules/hosts/desktop.nix +++ b/modules/hosts/desktop.nix @@ -53,6 +53,7 @@ inputs.caelestia-shell.homeManagerModules.default anki caelestia + caelestia-desktop cursor development eza