1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(xautolock): dont suspend ever

This commit is contained in:
Kierán Meinhardt
2020-01-03 12:01:46 +01:00
parent c56652fd61
commit f31e0f31c2

View File

@@ -1,5 +1,7 @@
{ config, pkgs, lib, ... }:
let
suspendIfBored = false;
xlockModes = lib.concatStringsSep "\\n" [
# "braid"
"galaxy"
@@ -27,7 +29,7 @@ in
{
services.xserver.xautolock = rec {
enable = true;
killer = "${pkgs.systemd}/bin/systemctl suspend";
killer = if suspendIfBored then "${pkgs.systemd}/bin/systemctl suspend" else null;
locker = "${my-xlock}/bin/xlock";
nowlocker = locker;
enableNotifier = true;