mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 11:44:02 +00:00
077938f18b
format with nixfmt-rfc-style
25 lines
432 B
Nix
25 lines
432 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 ];
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ johnrtitor ];
|
|
}
|