-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: add new VM, HW and profile configuration
Signed-off-by: Jenni Nikolaenko <[email protected]>
- Loading branch information
1 parent
8943b19
commit fda620d
Showing
6 changed files
with
125 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- | ||
Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
SPDX-License-Identifier: CC-BY-SA-4.0 | ||
--> | ||
|
||
# Hardware Configuration | ||
|
||
All configuration files for reference target devices are in [modules/hardware](https://github.com/tiiuae/ghaf/tree/main/modules/hardware). | ||
|
||
The ghaf-24.06 release supports the following target hardware: | ||
|
||
* NVIDIA Jetson AGX Orin | ||
* NVIDIA Jetson Orin NX | ||
* Generic x86 (PC) | ||
* Polarfire Icicle Kit | ||
* Lenovo ThinkPad X1 Carbon Gen 11 | ||
* Lenovo ThinkPad X1 Carbon Gen 10 | ||
* NXP i.MX 8M Plus | ||
|
||
To add a new hardware configuration file, do the following: | ||
|
||
1. Create a separate folder for the device in [modules/hardware](https://github.com/tiiuae/ghaf/tree/main/modules/hardware). | ||
2. Create the new configuration file with hardware-dependent parameters like host information, input and output device parameters, and others. | ||
|
||
You can use an already existing file as a reference, for example [modules/hardware/lenovo-x1/definitions/x1-gen11.nix](https://github.com/tiiuae/ghaf/blob/main/modules/hardware/lenovo-x1/definitions/x1-gen11.nix). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
Copyright 2022-2024 TII (SSRC) and the Ghaf contributors | ||
SPDX-License-Identifier: CC-BY-SA-4.0 | ||
--> | ||
|
||
# Profiles Configuration | ||
|
||
A profile is a set of software needed for a particular use case. All profiles configuration files are in [modules/profiles](https://github.com/tiiuae/ghaf/tree/main/modules/profiles). | ||
|
||
To add a new profile, do the following: | ||
|
||
1. Create your own configuration file using [modules/profiles/mvp-user-trial.nix](https://github.com/tiiuae/ghaf/blob/main/modules/profiles/mvp-user-trial.nix) as a reference. | ||
2. Depending on the location of your reference appvms, services, or programs change the includes to point to them. | ||
3. Create a new enable option to enable the profile, for example, `new-cool-profile`. | ||
4. In the lower section, under the correct area appvms, services, programs, make sure to describe additional definitions you need. | ||
|
||
|
||
For example, a `safe-and-unsave-browsing.nix` file with simple setup that includes business-vm and chrome-vm could look like this: | ||
|
||
``` | ||
config = lib.mkIf cfg.enable { | ||
ghaf = { | ||
reference = { | ||
appvms = { | ||
enable = true; | ||
chromium-vm = true; | ||
business-vm = true; | ||
}; | ||
services = { | ||
enable = true; | ||
}; | ||
programs = { | ||
}; | ||
}; | ||
profiles = { | ||
laptop-x86 = { | ||
enable = true; | ||
netvmExtraModules = [../reference/services]; | ||
guivmExtraModules = [../reference/programs]; | ||
inherit (config.ghaf.reference.appvms) enabled-app-vms; | ||
}; | ||
}; | ||
}; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters