summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/remote-server.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/remote-server.nix b/roles/remote-server.nix
index 599ca73..3173bb0 100644
--- a/roles/remote-server.nix
+++ b/roles/remote-server.nix
@@ -29,6 +29,17 @@
openFirewall = true;
};
+ services.sunshine = {
+ enable = true;
+ autoStart = true;
+ capSysAdmin = true;
+ openFirewall = true;
+ settings = {
+ adapter_name = "/dev/dri/card0"; # primary card should be located here
+ encoder = "vaapi"; # or "qsv" is quicksync is better supported
+ };
+ };
+
# override desktop configuration, because we do run SSH
# on remote-servers.
age.identityPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];