ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
27 lines
521 B
Nix
27 lines
521 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
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 {
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
systemd = {
|
|
packages = [ cfg.package ];
|
|
user.services.hypridle.wantedBy = [ "graphical-session.target" ];
|
|
};
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ johnrtitor ];
|
|
}
|