swayidle is service not program

This commit is contained in:
twoneis 2024-07-23 18:44:11 +02:00
parent 6cc4642526
commit a23a94571e

View file

@ -43,7 +43,7 @@
settings = import ./swaylock.conf.nix { lib = lib; config = config; }; settings = import ./swaylock.conf.nix { lib = lib; config = config; };
}; };
programs.swayidle = { services.swayidle = {
enable = true; enable = true;
events = [ events = [
{ event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; } { event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; }