mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
38 lines
775 B
Nix
38 lines
775 B
Nix
{
|
|
config,
|
|
pkgs-unstable,
|
|
lib,
|
|
...
|
|
}@moduleArgs:
|
|
let
|
|
cfg = config.custom.programs.hyprlock;
|
|
in
|
|
{
|
|
options.custom.programs.hyprlock = {
|
|
enable = lib.mkEnableOption "";
|
|
fprintAuth = lib.mkEnableOption "" // {
|
|
default = moduleArgs.osConfig.services.fprintd.enable or false;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.hyprlock = {
|
|
enable = true;
|
|
package = pkgs-unstable.hyprlock;
|
|
|
|
settings = {
|
|
general.hide_cursor = true;
|
|
auth."fingerprint:enabled" = cfg.fprintAuth;
|
|
|
|
animations.enabled = false;
|
|
input-field.monitor = "";
|
|
background = {
|
|
monitor = "";
|
|
path = "screenshot";
|
|
blur_passes = 2;
|
|
brightness = 0.5;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|