1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 09:20:58 +03:00
nixpkgs/nixos/modules/services/wayland/hypridle.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
521 B
Nix
Raw Normal View History

{
lib,
pkgs,
config,
...
}:
2024-05-27 17:41:36 +05:30
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 ];
2024-05-27 17:41:36 +05:30
systemd = {
packages = [ cfg.package ];
user.services.hypridle.wantedBy = [ "graphical-session.target" ];
};
2024-05-27 17:41:36 +05:30
};
meta.maintainers = with lib.maintainers; [ johnrtitor ];
}