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