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

@ -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;
};
};
}