diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index 7175db6..4659c20 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { home.packages = with pkgs; [ - swayidle # lock on idle swayosd # volume pop-up swaynotificationcenter # notifications hyprpolkitagent # Privilege managent @@ -12,6 +11,16 @@ xclip ]; + services.swayidle = { + enable = true; + events = [ + { + event = "before-sleep"; + command = "hyprlock"; + } + ]; + }; + wayland.windowManager.hyprland = { enable = true; plugins = [