1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 00:49:27 +03:00
nixpkgs/nixos/modules/services/wayland/hypridle.nix
John Titor ad9367061b treewide: adopt hypr ecosytem by Hyprland team
Preserved maintainer entries that are not in Hyprland teams.

Removed @wozeparrot as per https://github.com/NixOS/nixpkgs/issues/377569#issuecomment-2619445027

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
2025-01-28 23:03:51 +05:30

32 lines
660 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" ];
user.services.hypridle.path = [
config.programs.hyprland.package
config.programs.hyprlock.package
pkgs.procps
];
};
};
meta.maintainers = lib.teams.hyprland.members;
}