nix/modules/system/services/sunshine.nix

27 lines
475 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.settings.services.sunshine;
in {
options = {
settings.services.sunshine.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable sunshine service
'';
};
};
config = mkIf cfg.enable {
services.sunshine = {
enable = true;
2025-02-22 16:17:19 +01:00
package = pkgs.unstable.sunshine;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
};
}