mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-15 09:27:17 +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;
|
|
};
|
|
};
|
|
}
|