File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 agent
6161 image
6262 kernel-uvm
63+ kernel-uvm-gpu
6364 runtime
6465 runtime-rs
6566 calculateSnpLaunchDigest
Original file line number Diff line number Diff line change 1+ # Copyright 2026 Edgeless Systems GmbH
2+ # SPDX-License-Identifier: BUSL-1.1
3+
4+ { kernel-uvm , ... } @args :
5+
6+ kernel-uvm . override ( removeAttrs args [ "kernel-uvm" ] // { withGPU = true ; } )
Original file line number Diff line number Diff line change 77 linuxPackagesFor ,
88} :
99
10- # The kernel modules have to be built against the very kernel the PodVM boots, so this
11- # must stay in sync with the `boot.kernelPackages` set in packages/nixos/kata.nix.
1210callPackage ./driver.nix {
13- inherit ( linuxPackagesFor ( kata . kernel-uvm . override { withGPU = true ; } ) )
11+ inherit ( linuxPackagesFor kata . kernel-uvm-gpu )
1412 nvidiaPackages
1513 ;
1614}
Original file line number Diff line number Diff line change 114114 # Not used directly, but required for kernel-specific driver builds.
115115 boot . kernelPackages = lib . recurseIntoAttrs (
116116 pkgs . linuxPackagesFor (
117- pkgs . contrastPkgs . kata . kernel-uvm . override {
118- withGPU = config . contrast . gpu . enable ;
119- }
117+ if config . contrast . gpu . enable then
118+ pkgs . contrastPkgs . kata . kernel-uvm-gpu
119+ else
120+ pkgs . contrastPkgs . kata . kernel-uvm
120121 )
121122 ) ;
122123
You can’t perform that action at this time.
0 commit comments