refactor: move hyprlock into centralised config

This commit is contained in:
Mohammad Rafiq 2025-03-27 00:21:55 +08:00
parent 7b1bf83602
commit c2be760298
No known key found for this signature in database
3 changed files with 56 additions and 60 deletions

View file

@ -1,54 +0,0 @@
{ pkgs, osConfig, ... }:
let
cfg =
if osConfig.networking.hostName == "nemesis" then
{
mainMonitor = "HDMI-A-1";
}
else
{
mainMonitor = "";
};
in
{
programs.hyprlock = {
enable = true;
package = null;
settings = {
general = {
hide_cursor = true;
ignore_empty_input = true;
};
background = {
blur_passes = 5;
blur_size = 5;
};
label = {
monitor = cfg.mainMonitor;
text = ''hi, $USER.'';
font_size = 32;
halign = "center";
valign = "center";
position = "0, 0";
zindex = 1;
shadow_passes = 5;
shadow_size = 5;
};
input-field = {
fade_on_empty = true;
size = "200, 45";
halign = "center";
valign = "center";
position = "0, -5%";
placeholder_text = "";
zindex = 1;
shadow_passes = 5;
shadow_size = 5;
};
};
};
}