Extract a docker mixin

This commit is contained in:
Oliver Davies 2025-04-05 09:00:00 +01:00
parent a4cacfd4de
commit 44d2685854
11 changed files with 20 additions and 46 deletions

View file

@ -1,18 +0,0 @@
{ lib, config, ... }:
with lib;
{
options.nixosModules.docker.enable = mkEnableOption "Enable Docker";
config = mkIf config.nixosModules.docker.enable {
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
}