feat(modules/de): add sunshine remote streaming server

This commit is contained in:
Mohammad Rafiq 2025-05-12 13:20:41 +08:00
parent 604432fd74
commit b6dde55bad
No known key found for this signature in database
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,7 @@
nw-config.wol.interface = "enp12s0";
de.enable = true;
de.type = "hyprland";
de.enableSunshine = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/e5005ea6-6c5a-4ab3-9767-ce7772582024";

View file

@ -17,6 +17,7 @@ in
example = "hyprland";
description = "What desktop environment should be installed on the host.";
};
enableSunshine = lib.mkEnableOption "Enable streaming with Sunshine.";
};
};
@ -70,6 +71,16 @@ in
};
})
(lib.mkIf cfg.enableSunshine {
services.sunshine = {
enable = true;
capSysAdmin = true;
autoStart = true;
openFirewall = true;
settings = { };
applications = { };
};
})
]
);
}