diff --git a/docs/common-patterns.md b/docs/common-patterns.md index 7d7d87056..3402fb0d1 100644 --- a/docs/common-patterns.md +++ b/docs/common-patterns.md @@ -14,7 +14,7 @@ This example adds Elixir install scripts to `~/.mix/escripts`: } ``` -## How Can I use Rosetta packages? +## How can I use Rosetta packages? It's possible to tell Nix to use Intel packages when using macOS ARM: @@ -33,3 +33,15 @@ in { ]; } ``` + +## How to exclude packages from the container? + +```nix +{ pkgs, ... }: { + packages = [ + pkgs.git + ] ++ lib.optionals !config.container.isBuilding [ + pkgs.haskell-language-server + ]; +} +```