It has never worked. Never had time to proper find a fix and documentation if it is still necessary inside LXC
26 lines
363 B
Nix
26 lines
363 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.virtualisation.docker;
|
|
in
|
|
{
|
|
options.my.virtualisation.docker = {
|
|
enable = lib.mkEnableOption "Enable Docker module";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation = {
|
|
docker = {
|
|
storageDriver = "overlay2";
|
|
};
|
|
|
|
oci-containers.backend = "docker";
|
|
|
|
};
|
|
};
|
|
|
|
}
|