19 lines
304 B
Nix
19 lines
304 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.features.cli.docker.enable = mkEnableOption "Enable Docker";
|
|
|
|
config = mkIf config.features.cli.docker.enable {
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
};
|
|
};
|
|
}
|