diff --git a/hosts/armaros/configuration.nix b/hosts/armaros/configuration.nix index ac55e45..445a110 100644 --- a/hosts/armaros/configuration.nix +++ b/hosts/armaros/configuration.nix @@ -80,6 +80,20 @@ variant = ""; }; + services.sunshine = { + enable = true; + autoStart = true; + capSysAdmin = true; # Required for KMS screen capture (especially on Wayland) + openFirewall = true; # Automatically opens required ports for Moonlight + }; + + # Enable Avahi so Moonlight automatically discovers your PC on the network + services.avahi = { + enable = true; + publish.enable = true; + publish.userServices = true; + }; + # Enable CUPS to print documents. services.printing.enable = false; diff --git a/hosts/armaros/hardware-configuration.nix b/hosts/armaros/hardware-configuration.nix index 196888a..7939680 100644 --- a/hosts/armaros/hardware-configuration.nix +++ b/hosts/armaros/hardware-configuration.nix @@ -14,7 +14,7 @@ boot.initrd.availableKernelModules = ["virtio_pci" "virtio_scsi" "ahci" "sd_mod"]; boot.initrd.kernelModules = []; - boot.kernelModules = []; + boot.kernelModules = [uinput]; boot.extraModulePackages = []; fileSystems."/" = {