mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00

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>
30 lines
652 B
Nix
30 lines
652 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.hyprlock;
|
|
in
|
|
{
|
|
options.programs.hyprlock = {
|
|
enable = lib.mkEnableOption "hyprlock, Hyprland's GPU-accelerated screen locking utility";
|
|
package = lib.mkPackageOption pkgs "hyprlock" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = [
|
|
cfg.package
|
|
];
|
|
|
|
# Hyprlock needs Hypridle systemd service to be running to detect idle time
|
|
services.hypridle.enable = true;
|
|
|
|
# Hyprlock needs PAM access to authenticate, else it fallbacks to su
|
|
security.pam.services.hyprlock = { };
|
|
};
|
|
|
|
meta.maintainers = lib.teams.hyprland.members;
|
|
}
|