nixos/modules/system/docker/default.nix

23 lines
429 B
Nix
Raw Normal View History

2022-12-05 22:51:46 +01:00
# Docker related settings
{ config, inputs, lib, options, pkgs, ... }:
let
cfg = config.my.system.docker;
in
{
options.my.system.docker = with lib; {
enable = mkEnableOption "docker configuration";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
docker
docker-compose
];
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
};
}