1 # A general watchdog for the linux operating system that should run in the
2 # background at all times to ensure a realtime process won't hang the machine
3 { config, lib, pkgs, ... }:
9 inherit (pkgs) das_watchdog;
15 services.das_watchdog.enable = mkEnableOption (lib.mdDoc "realtime watchdog");
20 config = mkIf config.services.das_watchdog.enable {
21 environment.systemPackages = [ das_watchdog ];
22 systemd.services.das_watchdog = {
23 description = "Watchdog to ensure a realtime process won't hang the machine";
24 after = [ "multi-user.target" "sound.target" ];
25 wantedBy = [ "multi-user.target" ];
29 ExecStart = "${das_watchdog}/bin/das_watchdog";
30 RemainAfterExit = true;