nixos/modules/server/docker/default.nix

19 lines
367 B
Nix
Raw Normal View History

2024-05-25 01:32:48 +02:00
{ 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;
};
};
}