Add snapserver
This commit is contained in:
parent
8bb919f781
commit
8c70960c28
4 changed files with 31 additions and 1 deletions
|
|
@ -197,6 +197,8 @@ with lib; {
|
|||
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
sound.enable = true;
|
||||
|
||||
virtualisation.containers.storage.settings = {
|
||||
storage = {
|
||||
driver = "zfs";
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ custom-utils.validatePortAttrset {
|
|||
qbittorrent-webui.tcp = 8099;
|
||||
radicale.tcp = 5232;
|
||||
rmfakecloud.tcp = 3000;
|
||||
snapserver.tcp = 1705;
|
||||
unifi.tcp = 8443;
|
||||
wireguard-public-ip-tunnel.udp = 51000;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
imports = [
|
||||
./dnsmasq.nix
|
||||
./dyndns.nix
|
||||
./home-assistant.nix
|
||||
./esphome
|
||||
./home-assistant.nix
|
||||
./jellyfin.nix
|
||||
./mail.nix
|
||||
./matrix.nix
|
||||
|
|
@ -13,6 +13,7 @@
|
|||
./public-ip-tunnel.nix
|
||||
./radicale.nix
|
||||
./remarkable.nix
|
||||
./snapserver.nix
|
||||
./sturzbach.nix
|
||||
./unifi-controller.nix
|
||||
];
|
||||
|
|
|
|||
26
hosts/iron/services/snapserver.nix
Normal file
26
hosts/iron/services/snapserver.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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";
|
||||
#};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue