hyprlock config as nixconfig instead of dotfiles

This commit is contained in:
janis 2025-09-03 13:23:47 +02:00
parent 93fd0d7232
commit d1da8b0c8b
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -1,6 +1,73 @@
{pkgs, lib, super-config, ...}: { {pkgs, lib, super-config, ...}: {
services.hyprpolkitagent.enable = true; services.hyprpolkitagent.enable = true;
programs.hyprlock.enable = true; programs.hyprlock = {
enable = true;
settings = {
background = {
monitor = "";
path = "~/.local/share/wallpapers/current_lock";
blur_passes = 2;
contrast = 1;
brightness = 0.5;
vibrancy = 0.2;
vibrancy_darkness = 0.2;
};
general = {
no_fade_in = true;
no_fade_out = true;
hide_cursor = false;
grace = 2;
enable_fingerprint = true;
disable_loading_bar = true;
};
input-field = {
monitor = "";
size = "250, 60";
outline_thickness = 2;
dots_size = 0.2;
dots_spacing = 0.35;
dots_center = true;
outer_color = "rgba(0, 0, 0, 0)";
inner_color = "rgba(0, 0, 0, 0.2)";
font_color = "$foreground";
fade_on_empty = false;
rounding = -1;
check_color = "rgb(204, 136, 34)";
placeholder_text = "<i><span foreground=\"##cdd6f4\">Input Password...</span></i>";
hide_input = false;
position = "0, -200";
halign = "center";
valign = "center";
};
# DATE
label-date = {
monitor = "";
text = ''cmd[update:1000] echo "''$(${pkgs.coreutils}/bin/date +"%A, %B %d")"'';
color = "rgba(242, 243, 244, 0.75)";
font_size = 22;
font_family = "JetBrains Mono";
position = "0, 300";
halign = "center";
valign = "center";
};
# TIME
label-time = {
monitor = "";
text = ''cmd[update:1000] echo "''$(${pkgs.coreutils} +"%-I:%M")"'';
color = "rgba(242, 243, 244, 0.75)";
font_size = 95;
font_family = "JetBrains Mono Extrabold";
position = "0, 200";
halign = "center";
valign = "center";
};
};
};
services.hypridle = lib.optionals (super-config.enableHypridle == true) { services.hypridle = lib.optionals (super-config.enableHypridle == true) {
enable = true; enable = true;
@ -37,6 +104,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprlock hyprlock
coreutils
] ++ (lib.optionals (super-config.enableHypridle == true) [ ] ++ (lib.optionals (super-config.enableHypridle == true) [
hypridle hypridle
]); ]);