feat(caelestia): make idle configurable

This commit is contained in:
2026-08-20 22:16:48 +02:00
parent b75cb297a0
commit b315247f33
2 changed files with 13 additions and 3 deletions
+9 -2
View File
@@ -7,7 +7,14 @@
with lib; let
cfg = config.home.desktop.caelestia;
in {
options.home.desktop.caelestia.enable = mkEnableOption "Enables Caelestia Shell";
options.home.desktop.caelestia = {
enable = mkEnableOption "Enables Caelestia Shell";
idleTimeout = mkOption {
description = "Idle duration in seconds before locking the session";
default = 60 * 60; # an hour
type = types.int;
};
};
config.programs.caelestia = mkIf cfg.enable {
inherit (cfg) enable;
systemd = {
@@ -28,7 +35,7 @@ in {
inhibitWhenAudio = true;
timeouts = [
{
timeout = 3600;
timeout = cfg.idleTimeout;
idleAction = "lock";
}
];