nixos-config/modules/home/programs/hyprlock.nix
SebastianStork 70b8d89311
Revert "home-manager: Use minimal module set and import everything else manually"
This reverts commit 0c25e7fd34.

The slightly decreased evaluation time isn't worth the added maintenance burden
2026-02-19 18:37:58 +01:00

42 lines
839 B
Nix

{
config,
osConfig,
pkgs-unstable,
lib,
...
}:
let
cfg = config.custom.programs.hyprlock;
in
{
options.custom.programs.hyprlock = {
enable = lib.mkEnableOption "";
fprintAuth = lib.mkEnableOption "" // {
default = osConfig.services.fprintd.enable;
};
};
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
package = pkgs-unstable.hyprlock;
settings = {
general.hide_cursor = true;
auth."fingerprint:enabled" = cfg.fprintAuth;
animations.enabled = false;
input-field.monitor = "";
background =
[
"DP-1"
"eDP-1"
]
|> lib.map (monitor: {
inherit monitor;
path = "~/.local/state/wpaperd/wallpapers/${monitor}";
});
};
};
};
}