mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Fix hyprlock fingerprint auth
This commit is contained in:
parent
d76269df2c
commit
c457f589ff
1 changed files with 21 additions and 5 deletions
|
|
@ -1,20 +1,36 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
options.myConfig.de.hyprlock.enable = lib.mkEnableOption "";
|
||||
config,
|
||||
pkgs-unstable,
|
||||
lib,
|
||||
...
|
||||
}@moduleArgs:
|
||||
let
|
||||
cfg = config.myConfig.de.hyprlock;
|
||||
in
|
||||
{
|
||||
options.myConfig.de.hyprlock = {
|
||||
enable = lib.mkEnableOption "";
|
||||
fprintAuth = lib.mkEnableOption "" // {
|
||||
default = moduleArgs.osConfig.services.fprintd.enable or false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.myConfig.de.hyprlock.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
package = pkgs-unstable.hyprlock;
|
||||
|
||||
settings = {
|
||||
general.no_fade_in = true;
|
||||
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;
|
||||
};
|
||||
input-field.monitor = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue