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