blob: dd897b36d3bac21a880e6f9847e43621b01a9c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{ 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";
};
};
}
|