diff --git a/home-manager/modules/hyprland/default.nix b/home-manager/modules/hyprland/default.nix index c0e3f04..dcc8f83 100644 --- a/home-manager/modules/hyprland/default.nix +++ b/home-manager/modules/hyprland/default.nix @@ -1,6 +1,7 @@ { imports = [ ./binds.nix + ./hyprlock.nix ./main.nix ]; } diff --git a/home-manager/modules/hyprland/hyprlock.nix b/home-manager/modules/hyprland/hyprlock.nix new file mode 100644 index 0000000..15ea1d3 --- /dev/null +++ b/home-manager/modules/hyprland/hyprlock.nix @@ -0,0 +1,36 @@ +{ + 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; + font_color = "rgb(235, 219, 178)"; + inner_color = "rgb(40, 40, 40)"; + outer_color = "rgb(60, 56, 54)"; + outline_thickness = 5; + placeholder_text = "sussy baka"; + shadow_passes = 1; + } + ]; + }; + }; +} diff --git a/nixos/modules/hyprland.nix b/nixos/modules/hyprland.nix index daa1aa6..797c49d 100644 --- a/nixos/modules/hyprland.nix +++ b/nixos/modules/hyprland.nix @@ -2,4 +2,6 @@ programs.hyprland = { enable = true; }; + + security.pam.services.hyprlock = {}; }