mirror of
https://github.com/larstvei/nix-config.git
synced 2025-10-13 14:30:12 +00:00
Make fingerprint reader work
And add some settings for hyprlock.
This commit is contained in:
parent
8f247b2e6b
commit
887d820452
@ -11,7 +11,12 @@
|
||||
../../modules/desktop
|
||||
];
|
||||
|
||||
security.pam.services.hyprlock = { };
|
||||
services.fprintd.enable = true;
|
||||
security.pam.services = {
|
||||
login.fprintAuth = true;
|
||||
sudo.fprintAuth = true;
|
||||
hyprlock.fprintAuth = true;
|
||||
};
|
||||
|
||||
networking.hostName = "larstvei-think";
|
||||
|
||||
|
@ -3,10 +3,10 @@
|
||||
./animations
|
||||
./bindings
|
||||
./hypridle
|
||||
./hyprlock
|
||||
];
|
||||
|
||||
programs.kitty.enable = true;
|
||||
programs.hyprlock.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
32
modules/desktop/hypr/hyprlock/default.nix
Normal file
32
modules/desktop/hypr/hyprlock/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
background = [
|
||||
{
|
||||
monitor = "";
|
||||
path = "screenshot";
|
||||
blur_passes = 3;
|
||||
}
|
||||
];
|
||||
|
||||
input-field = [
|
||||
{
|
||||
monitor = "";
|
||||
size = "600, 100";
|
||||
position = "0, 0";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
|
||||
outline_thickness = 4;
|
||||
|
||||
placeholder_text = "⋯";
|
||||
fade_on_empty = false;
|
||||
}
|
||||
];
|
||||
|
||||
auth."fingerprint:enabled" = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user