commit then think

This commit is contained in:
unexplrd
2025-02-06 22:14:22 +02:00
parent c7576dc1ee
commit 7ec6392e68
46 changed files with 129 additions and 488 deletions

View File

@ -0,0 +1,29 @@
{
# pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.virtual.docker;
in {
options = {
virtual.docker.enable =
mkEnableOption "enable docker";
};
config = mkIf cfg.enable {
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
storageDriver = "btrfs";
autoPrune.enable = true;
#defaultNetwork.settings = {
# dns_enabled = true;
#};
};
virtualisation.oci-containers.backend = "docker";
};
}