2024-05-25 01:32:48 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
2024-05-27 22:40:30 +02:00
|
|
|
cfg = config.modules.system.server.docker;
|
2024-05-25 01:32:48 +02:00
|
|
|
in
|
|
|
|
{
|
2024-05-27 22:40:30 +02:00
|
|
|
options.modules.system.server.docker = {
|
2024-05-25 01:32:48 +02:00
|
|
|
enable = mkEnableOption ''
|
|
|
|
Enable docker with my custom configurations
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
2024-05-27 22:40:30 +02:00
|
|
|
enableNvidia = config.modules.system.hardware.nvidia.enable;
|
2024-05-25 01:32:48 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|