2022-09-27 22:07:46 +02:00
|
|
|
{ pkgs, lib, config, options, ... }:
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.personal.services.docker;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
personal = {
|
|
|
|
services = {
|
|
|
|
docker = {
|
|
|
|
enable = mkEnableOption "Docker";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-07-17 16:05:33 +02:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
lazydocker
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-09-27 22:07:46 +02:00
|
|
|
virtualisation = {
|
|
|
|
docker = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
autoPrune = {
|
|
|
|
enable = true;
|
|
|
|
dates = "weekly";
|
|
|
|
};
|
|
|
|
};
|
2024-07-17 16:05:33 +02:00
|
|
|
|
|
|
|
oci-containers = {
|
|
|
|
backend = "docker";
|
|
|
|
};
|
2022-09-27 22:07:46 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|