diff --git a/hosts/idols-kana/default.nix b/hosts/idols-kana/default.nix index da3bcabf..9d402474 100644 --- a/hosts/idols-kana/default.nix +++ b/hosts/idols-kana/default.nix @@ -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 diff --git a/hosts/idols-ruby/default.nix b/hosts/idols-ruby/default.nix index bed9c74a..7cfa505d 100644 --- a/hosts/idols-ruby/default.nix +++ b/hosts/idols-ruby/default.nix @@ -18,6 +18,7 @@ in { imports = [ ./packages.nix + ./oci-containers ]; # Enable binfmt emulation of aarch64-linux, this is required for cross compilation. diff --git a/hosts/idols-ruby/oci-containers/default.nix b/hosts/idols-ruby/oci-containers/default.nix new file mode 100644 index 00000000..14e90caa --- /dev/null +++ b/hosts/idols-ruby/oci-containers/default.nix @@ -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"; + }; + }; +}