mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-02-23 00:14:49 +01:00
26 lines
779 B
Nix
26 lines
779 B
Nix
{pkgs, ...}: {
|
|
###################################################################################
|
|
#
|
|
# Visualisation - Libvirt(QEMU/KVM) / Docker / LXD / WayDroid
|
|
#
|
|
###################################################################################
|
|
|
|
virtualisation = {
|
|
docker = {
|
|
enable = true;
|
|
daemon.settings = {
|
|
# enables pulling using containerd, which supports restarting from a partial pull
|
|
# https://docs.docker.com/storage/containerd/
|
|
"features" = {"containerd-snapshotter" = true;};
|
|
};
|
|
|
|
# start dockerd on boot.
|
|
# This is required for containers which are created with the `--restart=always` flag to work.
|
|
enableOnBoot = true;
|
|
};
|
|
|
|
waydroid.enable = true;
|
|
lxd.enable = true;
|
|
};
|
|
}
|