This repository has no description
617 B
27 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 --creds sun sun
21 ${pkgs.sunshine}/bin/sunshine -0 ${pkgs.writeText "sunshine.conf" ''
22 channels = 15
23 address_family = both
24 ''} "$@"
25 '')
26 ];
27}