26 lines
525 B
Nix
26 lines
525 B
Nix
args@{ lib, pkgs, config, custom-utils, ... }:
|
|
let
|
|
ports = import ../ports.nix args;
|
|
in
|
|
{
|
|
services.snapserver = {
|
|
enable = true;
|
|
tcp = {
|
|
enable = true;
|
|
port = ports.snapserver.tcp;
|
|
};
|
|
port = 1704;
|
|
http = {
|
|
enable = true;
|
|
port = 1780;
|
|
listenAddress = "127.0.0.1";
|
|
};
|
|
streams.default.location = "/run/snapserver/default";
|
|
#streams.default = {
|
|
# type = "alsa";
|
|
# sampleFormat = "48000:16:2";
|
|
# location = "";
|
|
# codec = "flac";
|
|
#};
|
|
};
|
|
}
|