Skip to content

Commit

Permalink
common-patterns: document container exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar authored Jul 24, 2023
1 parent def76d0 commit 9b6566c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/common-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
];
}
```

0 comments on commit 9b6566c

Please sign in to comment.