radiobert: fix, enable watchdog

This commit is contained in:
Astro 2021-09-23 19:33:40 +02:00
parent 837ae7c7e0
commit 7efcdafb33
2 changed files with 10 additions and 3 deletions

View File

@ -37,7 +37,9 @@
'';
};
};
kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages_5_13;
# Don't build ZFS for aarch64 (broken?)
supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
tmpOnTmpfs = true;
};
@ -109,6 +111,12 @@
SUBSYSTEM=="usb", MODE:="0666"
'';
# Reboot on hang
systemd.watchdog = {
runtimeTime = "10s";
rebootTime = "15s";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View File

@ -24,13 +24,12 @@ in
systemd.services.openwebrx = {
wantedBy = [ "multi-user.target" ];
path = [
cfg.package
cfg.package.csdr
pkgs.alsaUtils
pkgs.netcat
];
serviceConfig = {
ExecStart = "openwebrx";
ExecStart = "${cfg.package}/bin/openwebrx";
Restart = "always";
User = "openwebrx";
Groups = "openwebrx";