21 lines
578 B
Nix
Raw Normal View History

2022-12-07 22:16:53 +03:00
{ config, lib, pkgs, ... }: {
2022-12-10 22:34:39 +03:00
home-manager.users.${config.mainuser} = {
2022-12-07 22:16:53 +03:00
home.packages = [ pkgs.sunshine ];
systemd.user.services.sunshine = {
Unit.Description = "Sunshine is a Gamestream host for Moonlight.";
Service.ExecStart = "${pkgs.sunshine}/bin/sunshine";
Install.WantedBy = [ "graphical-session.target" ];
};
};
networking.firewall = {
allowedTCPPorts = [
47984 47989 48010
47990
];
allowedUDPPorts = [
47998 47999 48000 48002 48010
];
};
2023-03-27 20:57:06 +03:00
persist.state.homeDirectories = [ ".config/sunshine "];
2022-12-07 22:16:53 +03:00
}