nixos/modules/server/docker/default.nix
2024-05-27 19:45:14 +02:00

19 lines
No EOL
367 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.server.docker;
in
{
options.modules.server.docker = {
enable = mkEnableOption ''
Enable docker with my custom configurations
'';
};
config = mkIf cfg.enable {
virtualisation.docker = {
enable = true;
enableNvidia = config.modules.system.nvidia.enable;
};
};
}