1
0
Fork 0
nix-config/hosts/radiobert/soapysdr.nix

30 lines
583 B
Nix
Raw Normal View History

2021-10-14 16:11:56 +02:00
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
soapysdr-with-plugins
hackrf
];
2022-06-12 17:26:32 +02:00
users = {
groups.soapysdr = {};
users.soapysdr = {
isSystemUser = true;
group = "soapysdr";
};
2021-10-14 16:11:56 +02:00
};
2022-06-12 17:26:32 +02:00
2021-10-14 16:11:56 +02:00
systemd.services.soapysdr-server = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.soapysdr-with-plugins}/bin/SoapySDRServer --bind";
User = "soapysdr";
Group = "soapysdr";
ProtectSystem = "full";
ProtectHome = true;
Restart = "always";
RestartSec = "60s";
2021-10-14 16:11:56 +02:00
};
};
}