19 lines
483 B
Nix
19 lines
483 B
Nix
{
|
|
pkgs,
|
|
tiny-dfr ? pkgs.tiny-dfr
|
|
}: {
|
|
services.udev.packages = [ tiny-dfr ];
|
|
systemd.services.tiny-dfr = {
|
|
enable = true;
|
|
description = "tinydfr";
|
|
after = ["systemd-user-sessions.service" "getty@tty1.service" "plymouth-quit.service" "systemd-logind.service"];
|
|
wantedBy = ["multi-user.target"];
|
|
startLimitIntervalSec = 30;
|
|
startLimitBurst = 2;
|
|
serviceConfig = {
|
|
ExecStart = "${tiny-dfr}/bin/tiny-dfr";
|
|
Restart = "always";
|
|
};
|
|
};
|
|
}
|