mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 12:42:01 +01:00
32 lines
447 B
Nix
32 lines
447 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.services.docker;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
services = {
|
|
docker = {
|
|
enable = mkEnableOption "Docker";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
virtualisation = {
|
|
docker = {
|
|
enable = true;
|
|
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|