From ad6d6d4f158753f0e67692436433d0f2df6e911d Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 16 Mar 2025 22:03:35 +0000 Subject: [PATCH] hyprland: extract hyprlock --- users/jordan/graphical/default.nix | 2 +- .../{hyprland.nix => hyprland/default.nix} | 40 ++---------------- users/jordan/graphical/hyprland/hyprlock.nix | 41 +++++++++++++++++++ 3 files changed, 46 insertions(+), 37 deletions(-) rename users/jordan/graphical/{hyprland.nix => hyprland/default.nix} (87%) create mode 100644 users/jordan/graphical/hyprland/hyprlock.nix diff --git a/users/jordan/graphical/default.nix b/users/jordan/graphical/default.nix index ca97d31..0515e9c 100644 --- a/users/jordan/graphical/default.nix +++ b/users/jordan/graphical/default.nix @@ -15,7 +15,7 @@ ./gnome.nix ] ++ lib.optionals osConfig.modules.system.desktop.hyprland.enable [ - ./hyprland.nix + ./hyprland ]; home.packages = with pkgs; [ diff --git a/users/jordan/graphical/hyprland.nix b/users/jordan/graphical/hyprland/default.nix similarity index 87% rename from users/jordan/graphical/hyprland.nix rename to users/jordan/graphical/hyprland/default.nix index 60e4fc5..025f51e 100644 --- a/users/jordan/graphical/hyprland.nix +++ b/users/jordan/graphical/hyprland/default.nix @@ -4,6 +4,10 @@ }: { + imports = [ + ./hyprlock.nix + ]; + wayland.windowManager.hyprland = { enable = true; settings = { @@ -190,42 +194,6 @@ }; }; - programs.hyprlock = { - enable = false; - settings = { - general = { - disable_loading_bar = false; - 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; - } - ]; - }; - }; - services.hyprpaper = { enable = true; settings = { diff --git a/users/jordan/graphical/hyprland/hyprlock.nix b/users/jordan/graphical/hyprland/hyprlock.nix new file mode 100644 index 0000000..dbe35f6 --- /dev/null +++ b/users/jordan/graphical/hyprland/hyprlock.nix @@ -0,0 +1,41 @@ +{ + ... +}: + +{ + programs.hyprlock = { + enable = false; + settings = { + general = { + disable_loading_bar = false; + 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; + } + ]; + }; + }; +}