nix/modules/virtualisation/docker.nix
2024-08-16 18:22:21 +02:00

22 lines
369 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.docker;
in
{
options.docker = {
enable = lib.mkEnableOption "Enable Docker module";
};
config = lib.mkIf cfg.enable {
virtualisation = {
docker = {
storageDriver = "overlay2";
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
};
}