radiobert: update and adopt heliwatch

This commit is contained in:
Astro 2021-11-09 18:48:06 +01:00
parent ed0e9c4ab7
commit 4744eb9235
3 changed files with 10 additions and 5 deletions

View File

@ -8,11 +8,11 @@
"utils": "utils"
},
"locked": {
"lastModified": 1636416807,
"narHash": "sha256-cKVugZtEszVAz6+emfCgl4CdIzVcqP1CcfVCvpMdS5g=",
"lastModified": 1636472542,
"narHash": "sha256-HlzWJXlcgzGQRFkv1q/Bi2aWlHlpmEYiOjaz5LKJAgo=",
"ref": "master",
"rev": "3455a8d579aa67423adbc85abddab7c4d95e4eb8",
"revCount": 27,
"rev": "4e3504259a46bc586296bf15ffb9c72ffedf9b28",
"revCount": 34,
"type": "git",
"url": "https://gitea.c3d2.de/astro/heliwatch.git"
},

View File

@ -222,6 +222,7 @@
radiobert = nixosSystem' {
modules = [
"${inputs.nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
{ nixpkgs.overlays = [ heliwatch.overlay ]; }
./hosts/radiobert
];
system = "aarch64-linux";

View File

@ -38,7 +38,7 @@ in {
wantedBy = [ "multi-user.target" ];
requires = [ "readsb.service" ];
serviceConfig = {
ExecStart = "${pkgs.ruby}/bin/ruby ${./sbs2json.rb}";
ExecStart = "${pkgs.heliwatch.http-json}/bin/http-json";
User = "sbs2json";
Group = "adsb";
ProtectSystem = "full";
@ -66,6 +66,10 @@ in {
};
};
services.collectd.plugins.exec = ''
Exec "${config.services.collectd.user}" "${pkgs.heliwatch.collectd-stats}/bin/collectd-stats"
'';
environment.systemPackages = with pkgs; [
dump1090_sdrplus
readsb