{
  pkgs,
  config,
  lib,
  ...
}:
with lib;
let
  cfg = config.eboskma.programs.nyxt;
in
{
  options.eboskma.programs.nyxt = {
    enable = mkEnableOption "nyxt web browser";
  };

  config = mkIf cfg.enable {
    home.packages = [ pkgs.nyxt ];

    xdg.configFile.nyxt-config = {
      target = "nyxt/config.lisp";
      source = ./config.lisp;
    };
  };
}