mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +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;
|
||
|
};
|
||
|
};
|
||
|
}
|