feat: Hyprlock

This commit is contained in:
punkfairie 2025-01-13 20:31:44 -08:00
parent 3f73e9a877
commit d8d1e08400
No known key found for this signature in database
GPG key ID: B3C5488E9A1A7CA6
5 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{
config,
lib,
...
}: let
cfg = config.marleyos.programs.hyprlock;
in {
options.marleyos.programs.hyprlock.enable = lib.mkEnableOption "hyprlock";
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 10;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "${../../wayland/hyprland/wallpaper.png}";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
# FIXME: Don't hardcode these.
font_color = "rgb(191724)";
inner_color = "rgb(ebbcba)";
outer_color = "rgb(191724)";
outline_thickness = 5;
placeholder_text = "password...";
shadow_passes = 2;
}
];
};
};
};
}

View file

@ -9,6 +9,8 @@ in {
options.marleyos.programs.wlogout.enable = lib.mkEnableOption "wlogout";
config = lib.mkIf cfg.enable {
marleyos.programs.hyprlock.enable = true;
programs.wlogout = {
enable = true;

View file

@ -37,6 +37,7 @@ in {
marleyos = {
programs = {
hyprlock.enable = true;
waybar.enable = true;
wlogout.enable = true;
wofi.enable = true;

View file

@ -0,0 +1,15 @@
{
config,
lib,
...
}: let
cfg = config.marleyos.programs.hyprlock;
in {
options.marleyos.programs.hyprlock.enable = lib.mkEnableOption "hyprlock";
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
};
};
}

View file

@ -10,6 +10,8 @@ in {
options.marleyos.wayland.hyprland.enable = mkEnableOption "hyprland";
config = mkIf cfg.enable {
marleyos.programs.hyprlock.enable = true;
programs.hyprland = {
enable = true;
withUWSM = false;