diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index ba2a1c2..95db595 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -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 diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index 37c7b5a..c660cf8 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -1,6 +1,9 @@ { config, pkgs, ... }: { + imports = [ + ./hyprlock.nix + ]; wayland.windowManager.hyprland = { enable = true; xwayland.enable = true; diff --git a/modules/home-manager/hyprlock.nix b/modules/home-manager/hyprlock.nix new file mode 100644 index 0000000..e8b0ff9 --- /dev/null +++ b/modules/home-manager/hyprlock.nix @@ -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 = "Password..."; + shadow_passes = 2; + } + ]; + }; + }; +}