From bba1ac685f10e4dcc416cf3308f6289023194f48 Mon Sep 17 00:00:00 2001 From: Peritia Date: Mon, 2 Mar 2026 15:47:46 +0100 Subject: [PATCH] Ver 1.1 - init Hyprlock --- nixosVista/homeManager/hyprlock/main.nix | 2 +- nixosVista/options.nix | 25 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/nixosVista/homeManager/hyprlock/main.nix b/nixosVista/homeManager/hyprlock/main.nix index 49edcf4..5af1109 100644 --- a/nixosVista/homeManager/hyprlock/main.nix +++ b/nixosVista/homeManager/hyprlock/main.nix @@ -87,7 +87,7 @@ in config = lib.mkIf cfg.enable { programs.hyprlock = { enable = true; - extraConfig = hyprlockConfig; + extraConfig = hyprlockConfig + "\n" + cfg.extraConfig; }; }; } \ No newline at end of file diff --git a/nixosVista/options.nix b/nixosVista/options.nix index 57d7c1d..453f53e 100644 --- a/nixosVista/options.nix +++ b/nixosVista/options.nix @@ -254,6 +254,31 @@ with lib; { }; }; + + + + + + +############################################################ +# Lock screen (Hyprlock) +############################################################ + +hyprlock = { + enable = mkEnableOption "Enable Hyprlock lock screen"; + + # Future-proof: allow raw config injection + extraConfig = mkOption { + type = types.lines; + default = ""; + description = '' + Extra Hyprlock configuration appended to the generated config. + Useful for custom labels, blur tweaks, etc. + ''; + }; +}; + + waybar = { enable = mkOption { type = types.bool;