diff --git a/modules/applications/caelestia.nix b/modules/applications/caelestia.nix index ed78607..0201499 100644 --- a/modules/applications/caelestia.nix +++ b/modules/applications/caelestia.nix @@ -10,6 +10,35 @@ 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 = _: { + # 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 = false; + inhibitWhenAudio = true; + timeouts = []; + }; + }; + flake.homeModules.caelestia-laptop = _: { + programs.caelestia.settings.general.idle = { + lockBeforeSleep = true; + inhibitWhenAudio = true; + timeouts = [ + { + timeout = 180; + 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; @@ -101,25 +130,6 @@ ]; criticalLevel = 3; }; - idle = { - lockBeforeSleep = true; - inhibitWhenAudio = true; - timeouts = [ - { - timeout = 180; - idleAction = "lock"; - } - { - timeout = 300; - idleAction = "dpms off"; # what's that? - returnAction = "dpms on"; - } - { - timeout = 600; - idleAction = ["systemctl" "suspend-then-hibernate"]; - } - ]; - }; }; background = { desktopClock = { diff --git a/modules/hosts/laptop.nix b/modules/hosts/laptop.nix index c55f940..f6b1400 100644 --- a/modules/hosts/laptop.nix +++ b/modules/hosts/laptop.nix @@ -53,6 +53,7 @@ inputs.caelestia-shell.homeManagerModules.default anki caelestia + caelestia-laptop cursor development eza