2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.hypridle;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.hypridle = {
|
|
|
|
enable = lib.mkEnableOption "hypridle, Hyprland's idle daemon";
|
|
|
|
package = lib.mkPackageOption pkgs "hypridle" { };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-09-19 14:19:46 +00:00
|
|
|
environment.systemPackages = [ cfg.package ];
|
2024-06-05 15:53:02 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
systemd = {
|
|
|
|
packages = [ cfg.package ];
|
|
|
|
user.services.hypridle.wantedBy = [ "graphical-session.target" ];
|
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ johnrtitor ];
|
|
|
|
}
|