hyprlock: init (#619)

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
Oscar Schwarz 2024-11-14 08:53:56 +01:00 committed by GitHub
parent be94701ce7
commit f361071a1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

19
modules/hyprlock/hm.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, lib, ... }:
with config.lib.stylix;
{
options.stylix.targets.hyprlock.enable = mkEnableTarget "Hyprlock" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.hyprlock.enable) {
programs.hyprlock.settings = {
background.path = config.stylix.image;
input-field = with colors; {
outer_color = "rgb(${base03})";
inner_color = "rgb(${base00})";
font_color = "rgb(${base05})";
fail_color = "rgb(${base08})";
check_color = "rgb(${base0A})";
};
};
};
}