0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/sunshine: add literalExpression for examples

This commit is contained in:
Morgan Helton 2024-04-24 19:17:57 -05:00
parent ab3fc0538d
commit 34b255b69b

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, utils, ... }:
let
inherit (lib) mkEnableOption mkPackageOption mkOption mkIf mkDefault types optionals getExe;
inherit (lib) mkEnableOption mkPackageOption mkOption literalExpression mkIf mkDefault types optionals getExe;
inherit (utils) escapeSystemdExecArgs;
cfg = config.services.sunshine;
@ -39,7 +39,7 @@ in
See https://docs.lizardbyte.dev/projects/sunshine/en/latest/about/advanced_usage.html#configuration for syntax.
'';
example = ''
example = literalExpression ''
{
sunshine_name = "nixos";
}
@ -60,7 +60,7 @@ in
description = ''
Configuration for applications to be exposed to Moonlight. If this is set, no configuration is possible from the web UI, and must be by the `settings` option.
'';
example = ''
example = literalExpression ''
{
env = {
PATH = "$(PATH):$(HOME)/.local/bin";