-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.nix
77 lines (69 loc) · 2.13 KB
/
config.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ config, pkgs, lib, ... }:
{
options.programs.shadow-client = {
enable = lib.mkEnableOption ''
Enable the client to the Shadow Gaming Cloud Computer on NixOS
'';
channel = lib.mkOption {
type = lib.types.enum [ "prod" "preprod" "testing" ];
default = "prod";
example = "preprod";
description = ''
Choose a channel for the Shadow application.
`prod` is the stable channel,
`pre-prod` is the beta channel,
`testing` is the alpha channel.
'';
};
extraChannels = lib.mkOption {
type = lib.types.listOf (lib.types.enum [ "prod" "preprod" "testing" ]);
default = [ ];
example = [ "preprod" "testing" ];
description = ''
Choose extra channels to install aside from the main channel
'';
};
launchArgs = lib.mkOption {
type = lib.types.str;
default = "";
example = "--report";
description = ''
Start the launcher with arguments by default
'';
};
enableDesktopLauncher = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = ''
Provides the desktop file for launching Shadow from current session (only works with Xorg sessions).
'';
};
enableDiagnostics = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = ''
The command used to execute the client will be output in a file in /tmp.
The client will output its strace in /tmp.
This is mainly used for diagnostics purposes (when an update breaks something).
'';
};
forceDriver = lib.mkOption {
type = lib.types.nullOr (lib.types.enum [ "iHD" "i965" "radeon" "radeonsi" ]);
default = null;
example = "iHD";
description = ''
Force the VA driver used by Shadow using the LIBVA_DRIVER_NAME environment variable.
'';
};
enableGpuFix = lib.mkOption {
type = lib.types.bool;
default = true;
example = false;
description = ''
Disable the GPU fixes for Shadow related to the color bit size.
'';
};
};
}