23 lines
433 B
Nix
23 lines
433 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
options.sysconfig.opts.sunshine.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.sunshine.enable {
|
|
|
|
services.sunshine = {
|
|
enable = true;
|
|
|
|
autoStart = true;
|
|
|
|
capSysAdmin = true;
|
|
|
|
settings.port = 46990;
|
|
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|