nix-config/hosts/radiobert/soapysdr.nix

25 lines
515 B
Nix
Raw Normal View History

2021-10-14 16:11:56 +02:00
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
soapysdr-with-plugins
hackrf
];
users.users.soapysdr = {
isSystemUser = true;
group = "soapysdr";
};
users.groups.soapysdr = {};
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;
};
};
}