nix-conf/modules/linux/nixos/sunshine.nix

39 lines
757 B
Nix
Raw Normal View History

2025-04-03 14:32:41 +02:00
{
config,
2025-04-03 20:29:56 +02:00
pkgs,
2025-04-03 14:32:41 +02:00
lib,
...
}: {
options = {
crony.sunshine.enable = lib.mkEnableOption "Enable sunshine";
};
config = lib.mkIf config.crony.sunshine.enable {
services.sunshine = {
enable = true;
2025-04-03 20:29:56 +02:00
autoStart = false;
2025-04-03 14:32:41 +02:00
capSysAdmin = true;
openFirewall = true;
2025-04-03 20:29:56 +02:00
applications = {
env = {
PATH = "$(PATH):$(HOME)/.local/bin";
};
apps = [
{
name = "Desktop";
auto-detach = "true";
image-path = "desktop.png";
}
{
name = "Steam Big Picture";
detached = [
"${pkgs.steam} -tenfoot"
];
image-path = "steam.png";
}
];
};
2025-04-03 14:32:41 +02:00
};
};
}