{
  systemd.user.services.kanshi = {
    serviceConfig = {
      StartLimitBurst = 5;
      StartLimitIntervalSec = 30;
    };
  };

  services.kanshi = {
    enable = true;

    # swaymsg -t get_outputs
    settings = [
      {
        profile.name = "undocked";
        profile.outputs = [
          {
            criteria = "eDP-1";
            status = "enable";
            mode = "1920x1080";
            position = "0,0";
          }
        ];
      }
      {
        profile.name = "docked";
        profile.outputs = [
          {
            criteria = "eDP-1";
            status = "disable";
          }

          {
            criteria = "Samsung Electric Company LU28R55 H4ZRA00128";
            mode = "3840x2160";
            position = "0,0";
            scale = 1.5;
          }
        ];
      }
    ];
  };
}