mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
37 lines
789 B
Nix
37 lines
789 B
Nix
{
|
|
config,
|
|
pkgs-unstable,
|
|
lib,
|
|
...
|
|
}@moduleArgs:
|
|
let
|
|
cfg = config.myConfig.deUtils.hyprlock;
|
|
in
|
|
{
|
|
options.myConfig.deUtils.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.immediate_render = true;
|
|
auth."fingerprint:enabled" = cfg.fprintAuth;
|
|
animations.enabled = false;
|
|
input-field.monitor = "";
|
|
background = {
|
|
monitor = "";
|
|
path = "~/Pictures/.wallpaper";
|
|
blur_size = 4;
|
|
blur_passes = 1;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|