Add cuda file and fix on other configurations

This commit is contained in:
Laurent Gueret committed 2026-01-28 22:17:48 +01:00
1 parent 3da420f424
commit 4d824e2be1
6 files changed
+122 -20

No files matched your search

-1
View File
@@ -13,6 +13,5 @@ in
enable = true;
daemon.settings.features.cdi = true;
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.virtualisation.cuda;
in
{
options.os.virtualisation.cuda = {
enable = mkEnableOption "System CUDA service";
};
config = mkIf cfg.enable {
hardware.nvidia-container-toolkit.enable = true;
};
}