fix: properly setup sunshine.
This commit is contained in:
parent
b2cb59c304
commit
433fc52318
@ -18,7 +18,6 @@
|
|||||||
wineWowPackages.staging
|
wineWowPackages.staging
|
||||||
osu-lazer-bin
|
osu-lazer-bin
|
||||||
steam-rom-manager
|
steam-rom-manager
|
||||||
sunshine
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
./general-services.nix
|
./general-services.nix
|
||||||
./additional-hardware
|
./additional-hardware
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
./sunshine.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
crony.bluetooth.enable = lib.mkDefault true;
|
crony.bluetooth.enable = lib.mkDefault true;
|
||||||
@ -42,4 +43,5 @@
|
|||||||
crony.general-services.enable = lib.mkDefault true;
|
crony.general-services.enable = lib.mkDefault true;
|
||||||
crony.additional-hardware.enable = lib.mkDefault true;
|
crony.additional-hardware.enable = lib.mkDefault true;
|
||||||
crony.tailscale.enable = lib.mkDefault true;
|
crony.tailscale.enable = lib.mkDefault true;
|
||||||
|
crony.sunshine.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
18
modules/linux/nixos/sunshine.nix
Normal file
18
modules/linux/nixos/sunshine.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.sunshine.enable = lib.mkEnableOption "Enable sunshine";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.sunshine.enable {
|
||||||
|
services.sunshine = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
capSysAdmin = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user