Change in folders organisation

This commit is contained in:
Laurent Gueret
2026-01-29 11:04:36 +01:00
parent 4d824e2be1
commit 7dfad1672f
25 changed files with 48 additions and 112 deletions
@@ -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;
};
}
@@ -0,0 +1,24 @@
{ lib, config, ... }:
with lib;
let
cfg = config.os.graphics.nvidia;
in
{
options.os.graphics.nvidia = {
enable = mkEnableOption "System nvidia service";
};
config = mkIf cfg.enable {
services.xserver.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics.enable = true;
hardware.nvidia = {
open = true;
nvidiaSettings = false;
modesetting.enable = true; # Wayland requirements
powerManagement.enable = true;
};
};
}