Add cuda file and fix on other configurations
This commit is contained in:
@@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user