feat(tazjin/home): configure screen locking with swayidle

Change-Id: I73e42071710f481c0f1acf965e18446c18e7c94b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12430
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2024-09-02 01:11:20 +03:00 committed by clbot
parent 32cc8016df
commit 200d49a0e1

View file

@ -72,6 +72,14 @@ in
};
};
services.swayidle = let cmd = "${pkgs.swaylock}/bin/swaylock -fFkl -c 008080"; in {
enable = true;
events = [
{ event = "before-sleep"; command = cmd; }
{ event = "lock"; command = cmd; }
];
};
# Enable the dunst notification daemon, but force the
# configuration file separately instead of going via the strange
# Nix->dunstrc encoding route.