mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-02 14:29:24 +02:00
26 lines
527 B
Nix
26 lines
527 B
Nix
/*
|
|
This file contains the configuration for the gnuradio sdr decoding pipeline
|
|
*/
|
|
|
|
{ pkgs, config, lib }: {
|
|
systemd = {
|
|
services."gnu-radio" = {
|
|
enable = true;
|
|
wantedBy = [ "multi-user.target" ];
|
|
script = ''
|
|
${pkgs.gnuradio-decode}/bin/recv_and_demod.py
|
|
'';
|
|
|
|
serviceConfig = {
|
|
User = "gnuradio";
|
|
Restart = "always";
|
|
};
|
|
};
|
|
};
|
|
users.users.gnu-radio = {
|
|
name = "gnu-radio";
|
|
description = "gnu radio service user";
|
|
isNormalUser = true;
|
|
};
|
|
}
|