This repository has no description
561 B
26 lines
1{ pkgs, ... }: {
2 networking.firewall.allowedTCPPorts = [
3 47984
4 47989
5 48010
6 ];
7 networking.firewall.allowedUDPPorts = [
8 47998
9 47999
10 48000
11 ];
12
13 boot.kernelModules = [ "uinput" ];
14 services.udev.extraRules = ''
15 KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
16 '';
17
18 environment.systemPackages = [
19 (pkgs.writers.writeDashBin "sun" ''
20 ${pkgs.sunshine}/bin/sunshine -0 -1 ${pkgs.writeText "sunshine.conf" ''
21 channels = 5
22 output_name = 1
23 ''} "$@"
24 '')
25 ];
26}