mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
desktop: fix lock
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user