Ver 1.1 - init Hyprlock

This commit is contained in:
Peritia 2026-03-02 15:47:46 +01:00
parent 50dd409d0e
commit bba1ac685f
2 changed files with 26 additions and 1 deletions

View file

@ -87,7 +87,7 @@ in
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
extraConfig = hyprlockConfig;
extraConfig = hyprlockConfig + "\n" + cfg.extraConfig;
};
};
}

View file

@ -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;