mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-27 11:51:32 +01:00
chore: docker for ruby/kana
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -18,6 +18,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
./packages.nix
|
||||
./oci-containers
|
||||
];
|
||||
|
||||
# Enable binfmt emulation of aarch64-linux, this is required for cross compilation.
|
||||
|
||||
34
hosts/idols-ruby/oci-containers/default.nix
Normal file
34
hosts/idols-ruby/oci-containers/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user