{
flake.modules.nixos.hyprlock = {...}: {
security.pam.services.hyprlock = {};
};
flake.modules.homeManager.hyprlock = {
config,
lib,
...
}: let
cfg = config.arta.hyprlock;
in {
options.arta.hyprlock = {
extraConfig = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.unspecified;
default = {};
};
};
config = {
programs.hyprlock = {
enable = true;
settings = lib.mkMerge [
{
general = {
hide_cursor = true;
ignore_empty_input = true;
};
animations.enabled = false;
background = {
color = "0xffffffff";
};
}
cfg.extraConfig
];
};
};
};
}