{
  config,
  lib,
  ...
}: {
  options.dotfiles.inputs.home-manager.programs.swaylock.enable =
    lib.dotfiles.mkEnableOption;

  config =
    lib.mkIf
    config.dotfiles.inputs.home-manager.programs.swaylock.enable
    {
      home.activation =
        lib.dotfiles.home.activation.systemRequirement
        "dotfiles.inputs.home-manager.programs.swaylock"
        "security.pam.services.swaylock = {};"
        "https://nix-community.github.io/home-manager/options.xhtml#opt-programs.swaylock.enable";

      programs.swaylock = {
        enable = true;

        settings = {
          indicator-radius = 100;
          show-failed-attempts = true;
        };
      };
    };
}
