forked from Shinonome/omarchy-nix
fba993c589
* Set nix official formatter for the flake * format the entire project
75 lines
1.8 KiB
Nix
75 lines
1.8 KiB
Nix
inputs:
|
||
{
|
||
config,
|
||
pkgs,
|
||
lib,
|
||
...
|
||
}:
|
||
let
|
||
palette = config.colorScheme.palette;
|
||
convert = inputs.nix-colors.lib.conversions.hexToRGBString;
|
||
selected_wallpaper_path = (import ../../lib/selected-wallpaper.nix config).wallpaper_path;
|
||
|
||
backgroundRgb = "rgba(${convert ", " palette.base00}, 0.8)";
|
||
surfaceRgb = "rgb(${convert ", " palette.base02})";
|
||
foregroundRgb = "rgb(${convert ", " palette.base05})";
|
||
foregroundMutedRgb = "rgb(${convert ", " palette.base04})";
|
||
in
|
||
{
|
||
programs.hyprlock = {
|
||
enable = true;
|
||
settings = {
|
||
general = {
|
||
disable_loading_bar = true;
|
||
no_fade_in = false;
|
||
};
|
||
auth = {
|
||
fingerprint.enabled = true;
|
||
};
|
||
background = {
|
||
monitor = "";
|
||
path = selected_wallpaper_path;
|
||
# blur_passes = 3;
|
||
# brightness = 0.5;
|
||
};
|
||
|
||
input-field = {
|
||
monitor = "";
|
||
size = "600, 100";
|
||
position = "0, 0";
|
||
halign = "center";
|
||
valign = "center";
|
||
|
||
inner_color = surfaceRgb;
|
||
outer_color = foregroundRgb; # #d3c6aa
|
||
outline_thickness = 4;
|
||
|
||
font_family = "CaskaydiaMono Nerd Font";
|
||
font_size = 32;
|
||
font_color = foregroundRgb;
|
||
|
||
placeholder_color = foregroundMutedRgb;
|
||
placeholder_text = " Enter Password ";
|
||
check_color = "rgba(131, 192, 146, 1.0)";
|
||
fail_text = "Wrong";
|
||
|
||
rounding = 0;
|
||
shadow_passes = 0;
|
||
fade_on_empty = false;
|
||
};
|
||
|
||
label = {
|
||
monitor = "";
|
||
text = "\$FPRINTPROMPT";
|
||
text_align = "center";
|
||
color = "rgb(211, 198, 170)";
|
||
font_size = 24;
|
||
font_family = "CaskaydiaMono Nerd Font";
|
||
position = "0, -100";
|
||
halign = "center";
|
||
valign = "center";
|
||
};
|
||
};
|
||
};
|
||
}
|