mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-13 00:47:19 +00:00
17 lines
256 B
Nix
17 lines
256 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|