home/nixos/tiny-dfr.nix

19 lines
483 B
Nix
Raw Normal View History

2024-06-27 11:24:25 +02:00
{
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";
};
};
}