dtsoverlays
This commit is contained in:
32
modules/nixos/services/sunshine/default.nix
Normal file
32
modules/nixos/services/sunshine/default.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
name = "sunshine";
|
||||
cfg = config.${namespace}.services.${name};
|
||||
|
||||
module = lib.${namespace}.mkModule {
|
||||
inherit config name;
|
||||
description = "Sunshine, a self-hosted game stream host for Moonlight";
|
||||
options = { };
|
||||
moduleConfig = {
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
openFirewall = cfg.openFirewall;
|
||||
autoStart = true;
|
||||
capSysAdmin = true;
|
||||
applications.apps = with pkgs; [
|
||||
steam
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [ module ];
|
||||
}
|
||||
Reference in New Issue
Block a user