Skip to content

Commit

Permalink
nixos/hypridle: make hypridle start with graphical-session.target
Browse files Browse the repository at this point in the history
If we don't add the dependency explicitly, the service won't be pulled in
at runtime. Link: NixOS#340874 (comment)

Closes: NixOS#347651
  • Loading branch information
JohnRTitor committed Oct 10, 2024
1 parent 2d69681 commit 5eee20f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/wayland/hypridle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];

systemd.packages = [ cfg.package ];
systemd = {
packages = [ cfg.package ];
user.services.hypridle.wantedBy = [ "graphical-session.target" ];
};
};

meta.maintainers = with lib.maintainers; [ johnrtitor ];
Expand Down

0 comments on commit 5eee20f

Please sign in to comment.