34 lines
749 B
Nix
34 lines
749 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./docker.nix
|
|
./podman.nix
|
|
./networks.nix
|
|
./container-services
|
|
];
|
|
options = {
|
|
skyg.nixos.common.containers = {
|
|
enable = lib.mkOption {
|
|
description = "Whether to enable the container runtime (docker/podman).";
|
|
type = lib.types.bool;
|
|
default = true;
|
|
};
|
|
runtime = lib.mkOption {
|
|
description = "Docker vs podman";
|
|
type = lib.types.str;
|
|
default = "docker";
|
|
};
|
|
enableOnBoot = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
localDockerRegistries = lib.mkOption {
|
|
type = lib.types.listOf lib.types.str;
|
|
default = [ "minipc1.lab.internal:5001" ];
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|