main
1{inputs, ...}: {
2 flake.modules.homeManager.de-shell-noctalia = {pkgs, ...}: {
3 services.hypridle.settings = let
4 lock-command = "${inputs.noctalia.packages.${pkgs.stdenv.system}.default}/bin/noctalia-shell ipc call lockScreen lock";
5 in {
6 general = {
7 lock_cmd = lock-command;
8 before_sleep_cmd = lock-command;
9 };
10 listener = [
11 {
12 timeout = 300;
13 on-timeout = lock-command;
14 }
15 ];
16 };
17 };
18}