chore: docker for ruby/kana

This commit is contained in:
Ryan Yin
2026-03-26 13:03:30 +08:00
parent 8033e0c61f
commit d2590d3653
3 changed files with 36 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ in
{
imports = [
../idols-ruby/packages.nix
../idols-ruby/oci-containers
];
# supported file systems, so we can mount any removable disks with these filesystems

View File

@@ -18,6 +18,7 @@ in
{
imports = [
./packages.nix
./oci-containers
];
# Enable binfmt emulation of aarch64-linux, this is required for cross compilation.

View File

@@ -0,0 +1,34 @@
{
mylib,
lib,
pkgs,
...
}:
{
imports = mylib.scanPaths ./.;
# environment.systemPackages = with pkgs; [
# podman-compose
# ];
virtualisation = {
docker.enable = true;
# podman = {
# enable = true;
# # Create a `docker` alias for podman, to use it as a drop-in replacement
# dockerCompat = true;
# # Required for containers under podman-compose to be able to talk to each other.
# defaultNetwork.settings.dns_enabled = true;
# # Periodically prune Podman resources
# autoPrune = {
# enable = true;
# dates = "weekly";
# flags = [ "--all" ];
# };
# };
oci-containers = {
backend = "docker";
};
};
}