{
  config,
  lib,
  namespace,
  pkgs,
  ...
}: let
  inherit (lib) mkIf mkEnableOption;
  inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
  base = "${namespace}.cli.scripts";
  cfg = getAttrByNamespace config base;
in {
  options = mkOptionsWithNamespace base {
    enable = mkEnableOption "custom shell scripts";
  };

  config = mkIf cfg.enable {
    home.packages = [
      (import ./clock.nix {inherit pkgs;})
      (import ./format-drive.nix {inherit pkgs;})
      (import ./generate-gpg-keys.nix {inherit pkgs;})
      (import ./generate-ssh-keys.nix {inherit pkgs;})
      (import ./generate-ssl-certs.nix {inherit pkgs;})
      (import ./get-music-cover.nix {inherit pkgs;})
    ];
  };
}
