mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 04:58:19 -04:00
setup sunshine.nix
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
./llms.nix
|
||||
./open_webui.nix
|
||||
./qmk.nix
|
||||
./sunshine.nix
|
||||
./syncthing.nix
|
||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||
];
|
||||
|
||||
BIN
systems/rhapsody-in-green/edid/virtual-display.bin
Normal file
BIN
systems/rhapsody-in-green/edid/virtual-display.bin
Normal file
Binary file not shown.
28
systems/rhapsody-in-green/sunshine.nix
Normal file
28
systems/rhapsody-in-green/sunshine.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
capSysAdmin = true;
|
||||
};
|
||||
environment.systemPackages = [ pkgs.kdePackages.libkscreen ];
|
||||
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"drm.edid_firmware=DP-4:edid/virtual-display.bin"
|
||||
"video=DP-4:e"
|
||||
];
|
||||
};
|
||||
|
||||
hardware.firmware = [
|
||||
(pkgs.runCommandLocal "virtual-display-edid"
|
||||
{
|
||||
compressFirmware = false;
|
||||
}
|
||||
''
|
||||
mkdir -p $out/lib/firmware/edid
|
||||
cp ${./edid/virtual-display.bin} $out/lib/firmware/edid/virtual-display.bin
|
||||
''
|
||||
)
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user