diff --git a/modules/linux/nixos/sunshine.nix b/modules/linux/nixos/sunshine.nix index aa5bc7f..e93563f 100644 --- a/modules/linux/nixos/sunshine.nix +++ b/modules/linux/nixos/sunshine.nix @@ -1,5 +1,6 @@ { config, + pkgs, lib, ... }: { @@ -10,9 +11,28 @@ config = lib.mkIf config.crony.sunshine.enable { services.sunshine = { enable = true; - autoStart = true; + autoStart = false; capSysAdmin = true; openFirewall = true; + 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"; + } + ]; + }; }; }; }