fix: properly setup sunshine.
This commit is contained in:
parent
b2cb59c304
commit
433fc52318
3 changed files with 20 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue