nixdots/system/shared/services/docker.nix

17 lines
256 B
Nix
Raw Normal View History

2024-08-24 08:33:53 +00:00
{
lib,
config,
...
}: let
cfg = config.myOptions.system.docker;
in {
config = lib.mkIf cfg.enable {
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
daemon.settings.data-root = cfg.data-root;
};
};
}