nix/modules/virtualisation/docker.nix
2024-08-27 09:46:44 +02:00

27 lines
377 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;
};
};
};
};
}