oizys/modules/virtualization/docker.nix
2024-03-19 08:57:31 -05:00

18 lines
331 B
Nix

{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.oizys.docker;
in {
options.oizys.docker.enable = mkEnableOption "enable docker support";
config = mkIf cfg.enable {
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
lazydocker
];
};
}