{ lib, pkgs, config, ... }:
{
  options = {
    systemd.kill-user.enable = lib.mkEnableOption "Systemd kill-user@ services";
  };
  
  config.systemd.services."kill-user@" = lib.mkIf config.systemd.kill-user.enable {
    serviceConfig = {
      Type = "oneshot";
      ExecStart = "${pkgs.systemd}/bin/loginctl kill-user %I";
    };
  };
}