Add cuda file and fix on other configurations

This commit is contained in:
Laurent Gueret
2026-01-28 22:17:48 +01:00
parent 3da420f424
commit 4d824e2be1
6 changed files with 122 additions and 20 deletions
-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;
};
}
+1
View File
@@ -25,6 +25,7 @@
# Virtualisation Apps
os.shell.docker.enable = true;
os.virtualisation.cuda.enable = true;
# System version
system.stateVersion = "25.11";
+1 -1
View File
@@ -19,7 +19,7 @@
};
os.ide.zed.enable = true;
os.ide.jetbrains.enable = true;
os.ide.jetbrains.enable = false;
home.stateVersion = "25.11";
};