Migrated from import based to config based
This commit is contained in:
26
modules/system/services/sunshine.nix
Normal file
26
modules/system/services/sunshine.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ 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;
|
||||
package = pkgs.unstable.sunshine.override { cudaSupport = true; };
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user