fix: properly setup sunshine.

This commit is contained in:
CronyAkatsuki 2025-04-03 14:32:41 +02:00
parent b2cb59c304
commit 433fc52318
3 changed files with 20 additions and 1 deletions

View File

@ -18,7 +18,6 @@
wineWowPackages.staging
osu-lazer-bin
steam-rom-manager
sunshine
];
};
}

View File

@ -20,6 +20,7 @@
./general-services.nix
./additional-hardware
./tailscale.nix
./sunshine.nix
];
crony.bluetooth.enable = lib.mkDefault true;
@ -42,4 +43,5 @@
crony.general-services.enable = lib.mkDefault true;
crony.additional-hardware.enable = lib.mkDefault true;
crony.tailscale.enable = lib.mkDefault true;
crony.sunshine.enable = lib.mkDefault true;
}

View File

@ -0,0 +1,18 @@
{
config,
lib,
...
}: {
options = {
crony.sunshine.enable = lib.mkEnableOption "Enable sunshine";
};
config = lib.mkIf config.crony.sunshine.enable {
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
};
}