Skip to content

Commit

Permalink
add sunshine
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunsingh committed Nov 18, 2023
1 parent cfecadc commit 9678297
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 19 additions & 0 deletions modules/shared/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,23 @@
enable = true;
memoryPercent = 40;
};

systemd.user.services.sunshine = {
enable = true;
description = "sunshine";
wantedBy = ["graphical-session.target"];
serviceConfig = {
ExecStart = "${master.sunshine}/bin/sunshine";
};
};

# for sunshine
services.udev.extraRules = ''
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
'';

networking.firewall.allowedTCPPorts = [47984 47989 47990 48010];
networking.firewall.allowedUDPPorts = [47998 47999 48000];

boot.kernelModules = ["uinput"];
}
4 changes: 1 addition & 3 deletions users/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
system = "x86_64-linux";
stateVersion = "23.05";

modules = [
./shaurizard/home.nix
];
modules = [ ./shaurizard/home.nix ];
};
};
}

0 comments on commit 9678297

Please sign in to comment.