-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
- Loading branch information
Showing
7 changed files
with
55 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,52 @@ | ||
# Copyright 2024 TII (SSRC) and the Ghaf contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
{lib, ...}: | ||
with lib; { | ||
options.ghaf.graphics.hardware = { | ||
networkDevice = mkOption { | ||
type = types.anything; | ||
default = {}; | ||
description = '' | ||
Network device interface for use with graphics stack. | ||
''; | ||
with lib; | ||
let | ||
pciDevSubmodule = types.submodule { | ||
options = { | ||
path = mkOption { | ||
type = types.str; | ||
description = '' | ||
PCI device path | ||
''; | ||
}; | ||
vendorId = mkOption { | ||
type = types.nullOr types.str; | ||
default = null; | ||
description = '' | ||
PCI Vendor ID (optional) | ||
''; | ||
}; | ||
productId = mkOption { | ||
type = types.nullOr types.str; | ||
default = null; | ||
description = '' | ||
PCI Product ID (optional) | ||
''; | ||
}; | ||
name = mkOption { | ||
type = types.nullOr types.str; | ||
default = null; | ||
description = '' | ||
PCI device name (optional) | ||
''; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} | ||
in { | ||
options.ghaf.graphics.hardware = { | ||
networkDevices = mkOption { | ||
description = "Network PCI Devices"; | ||
type = types.listOf pciDevSubmodule; | ||
default = []; | ||
example = literalExpression '' | ||
[{ | ||
path = "0000:00:14.3"; | ||
vendorId = "8086"; | ||
productId = "51f1"; | ||
}] | ||
''; | ||
}; | ||
}; | ||
} |
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
{ | ||
imports = [ | ||
./definitions | ||
./ax88179_178a.nix | ||
./modules/fprint.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
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 |
---|---|---|
|
@@ -8,5 +8,6 @@ | |
./kernel/host/pkvm | ||
./x86_64-linux.nix | ||
./modules/tpm2.nix | ||
./modules/ax88179_178a.nix | ||
]; | ||
} |
File renamed without changes.
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