split bash from ghostty
This commit is contained in:
20
modules/nixos/services/sunshine/default.nix
Normal file
20
modules/nixos/services/sunshine/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib.${namespace}) mkBoolOpt;
|
||||
|
||||
cfg = config.${namespace}.services.sunshine;
|
||||
in
|
||||
{
|
||||
options.${namespace}.services.sunshine = {
|
||||
enable = mkEnableOption "enable sunshine service";
|
||||
openFirewall = mkBoolOpt true "open firewall";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.sunshine = {
|
||||
enable = true;
|
||||
openFirewall = cfg.openFirewall;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user