forked from cornerman/shadow-nix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.nix
77 lines (68 loc) · 2.06 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, ... }:
with lib;
{
options.programs.shadow-client = {
enable = mkEnableOption ''
Enable the client to the Shadow Gaming Cloud Computer on NixOS
'';
channel = mkOption {
type = types.enum [ "prod" "preprod" "testing" ];
default = "prod";
example = "preprod";
description = ''
Choose a channel for the Shadow application.
`prod` is the stable channel, `preprod` is the beta channel. `testing` is the alpha channel.
'';
};
extraChannels = mkOption {
type = types.listOf (types.enum [ "prod" "preprod" "testing" ]);
default = [];
example = [ "preprod" "testing" ];
description = ''
Choose extra channels to install aside from the main channel
'';
};
launchArgs = mkOption {
type = types.str;
default = "";
example = "--report";
description = ''
Start the launcher with arguments by default
'';
};
enableDesktopLauncher = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Provides the desktop file for launching Shadow from current session (only works with Xorg sessions).
'';
};
enableDiagnostics = mkOption {
type = 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 = mkOption {
type = types.nullOr (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 = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Disable the GPU fixes for Shadow related to the color bit size.
'';
};
};
}