mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 18:34:35 +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;
|
|
};
|
|
};
|
|
}
|