nix/modules/virtualisation/docker.nix
2024-06-27 15:31:12 +02:00

22 lines
366 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 = "btrfs";
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
};
}