74 lines
3.5 KiB
JavaScript
74 lines
3.5 KiB
JavaScript
export class OptionData {
|
|
constructor(description, tooltip) {
|
|
this.tooltip = tooltip;
|
|
this.description = description;
|
|
}
|
|
static add(name, description, tooltip) {
|
|
OptionData.map.set(name, new OptionData(description, tooltip));
|
|
}
|
|
static description(name) {
|
|
var _a;
|
|
return (_a = OptionData.map.get(name)) === null || _a === void 0 ? void 0 : _a.description;
|
|
}
|
|
static tooltip(name) {
|
|
var _a;
|
|
return (_a = OptionData.map.get(name)) === null || _a === void 0 ? void 0 : _a.tooltip;
|
|
}
|
|
}
|
|
OptionData.map = new Map();
|
|
OptionData.add('use-gpu', 'Use GPU in Realm', `If enabled the render node device <tt><b>/dev/dri/renderD128</b></tt> will be mounted into the realm container.
|
|
|
|
If privileged device <tt><b>/dev/dri/card0</b></tt> is also needed set
|
|
additional variable in realm configuration file:
|
|
|
|
<tt><b>use-gpu-card0 = true</b></tt>
|
|
`);
|
|
OptionData.add('use-wayland', 'Use Wayland in Realm', `If enabled access to Wayland display will be permitted in realm by adding wayland socket to realm.
|
|
|
|
<tt><b>/run/user/1000/wayland-0</b></tt>
|
|
|
|
`);
|
|
OptionData.add('use-x11', 'Use X11 in Realm', `If enabled access to X11 server will be added by mounting directory X11 directory into realm.
|
|
|
|
<tt><b>/tmp/.X11-unix</b></tt>
|
|
|
|
`);
|
|
OptionData.add('use-sound', 'Use sound in Realm', `If enabled allows use of sound inside of realm. The following items will be added:
|
|
|
|
<tt><b>/dev/snd</b></tt>
|
|
<tt><b>/dev/shm</b></tt>
|
|
<tt><b>/run/user/1000/pulse</b></tt>
|
|
|
|
`);
|
|
OptionData.add('use-shared-dir', 'Mount /Shared directory in Realm', `If enabled the shared directory will be mounted as <tt><b>/Shared</b></tt> in home directory of realm.
|
|
|
|
This directory is shared between all realms with this option enabled and is an easy way to move files between realms.
|
|
|
|
`);
|
|
OptionData.add('use-network', 'Realm has network access', `If enabled the realm will have access to the network.`);
|
|
OptionData.add('use-kvm', 'Use KVM (/dev/kvm) in Realm', `If enabled device <tt><b>/dev/kvm</b></tt> will be added to realm`);
|
|
OptionData.add('use-ephemeral-home', 'Use ephemeral tmpfs mount for home directory', `If enabled the home directory of realm will be set up in ephemeral mode.
|
|
|
|
The ephemeral home directory is set up with the following steps:
|
|
|
|
1. Home directory is mounted as tmpfs filesystem
|
|
2. Any files in <tt><b>/realms/skel</b></tt> are copied into home directory
|
|
3. Any files in <tt><b>/realms/realm-$name/skel</b></tt> are copied into home directory.
|
|
4. Any directories listed in config file variable <tt><b>ephemeral_persistent_dirs</b></tt>
|
|
are bind mounted from <tt><b>/realms/realm-$name/home</b></tt> into ephemeral
|
|
home directory.
|
|
|
|
`);
|
|
OptionData.add('overlay', 'Type of rootfs overlay Realm is configured to use.', `<b><big>Overlay</big></b>
|
|
Type of rootfs overlay realm is configured to use.
|
|
<b>None</b> Don't use a rootfs overlay
|
|
<b>TmpFS</b> Use a rootfs overlay stored on tmpfs
|
|
<b>Storage</b> Use a rootfs overlay stored on disk in storage partition
|
|
`);
|
|
OptionData.add('realmfs', 'Root filesystem image to use for Realm.', `<b><big>RealmFS</big></b>
|
|
Root filesystem image to use for realm.`);
|
|
OptionData.add('colorscheme', 'Terminal Color Scheme', `<b><big>Terminal Color Scheme</big></b>
|
|
Choose a color scheme to use in the terminals in this realm.`);
|
|
OptionData.add('window-label-color', 'Window Label Color', `<b><big>Window Label Color</big></b>
|
|
Set a color to be used when a label is drawn on the window titlebar indicating which realm the application is running in.`);
|