feat: hyprlock, not working lol

This commit is contained in:
s-prechtl 2024-09-15 11:37:11 +02:00
parent 71108f1763
commit 268179539b
3 changed files with 43 additions and 0 deletions

View file

@ -172,6 +172,7 @@
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
security.pam.services.hyprlock = {};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions

View file

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
imports = [
./hyprlock.nix
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;

View file

@ -0,0 +1,39 @@
{ config, pkgs, ... }:
{
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "<span foreground='##cad3f5'>Password...</span>";
shadow_passes = 2;
}
];
};
};
}