diff options
author | Rok Garbas <rok@garbas.si> | 2022-07-05 12:42:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 12:42:49 +0200 |
commit | 8a3d34e9741f561758b28d48c9e5864fbefc587f (patch) | |
tree | e633cf6b8101d84a7e5a1210750969c278ebc6e5 | |
parent | b7eb4ac1692e289912f3988c0e28bb2c778a4f7a (diff) | |
parent | 07416a6005fe035baa8646c6827904afb5226f95 (diff) |
Merge pull request #6749 from centromere/docker-extra-pkgs-layers
Allow specification of extra packages, maxLayers in Docker image
-rw-r--r-- | docker.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docker.nix b/docker.nix index 0cd64856f..ddf6feff5 100644 --- a/docker.nix +++ b/docker.nix @@ -4,6 +4,8 @@ , tag ? "latest" , channelName ? "nixpkgs" , channelURL ? "https://nixos.org/channels/nixpkgs-unstable" +, extraPkgs ? [] +, maxLayers ? 100 }: let defaultPkgs = with pkgs; [ @@ -23,7 +25,7 @@ let iana-etc git openssh - ]; + ] ++ extraPkgs; users = { @@ -229,7 +231,7 @@ let in pkgs.dockerTools.buildLayeredImageWithNixDb { - inherit name tag; + inherit name tag maxLayers; contents = [ baseSystem ]; |