fix: properly setup sunshine.
This commit is contained in:
parent
b2cb59c304
commit
433fc52318
@ -18,7 +18,6 @@
|
||||
wineWowPackages.staging
|
||||
osu-lazer-bin
|
||||
steam-rom-manager
|
||||
sunshine
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
./general-services.nix
|
||||
./additional-hardware
|
||||
./tailscale.nix
|
||||
./sunshine.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
@ -42,4 +43,5 @@
|
||||
crony.general-services.enable = lib.mkDefault true;
|
||||
crony.additional-hardware.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