Skip to content

Commit

Permalink
Merge pull request #311 from almostnobody/patch-1
Browse files Browse the repository at this point in the history
override module doc: fix #310
  • Loading branch information
Pacman99 committed Jun 8, 2021
1 parent 0f72f26 commit 4d1b3a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/concepts/overrides.md
Expand Up @@ -27,10 +27,11 @@ You can also pull modules from other channels. All modules have access to the
`modulesPath` for each channel as `<channelName>ModulesPath`. And you can use
`disabledModules` to remove modules from the current channel.

Pulling the zsh module from the `latest` channel:
To pull zsh module from the `latest` channel this code can be placed in any module, whether its your host file, a profile, or a module in ./modules etc:
```nix
{ latestModulesPath }: {
modules = [ "${latestModulesPath}/programs/zsh/zsh.nix" ];
{ latestModulesPath }:
{
imports = [ "${latestModulesPath}/programs/zsh/zsh.nix" ];
disabledModules = [ "programs/zsh/zsh.nix" ];
}
```
Expand Down

0 comments on commit 4d1b3a5

Please sign in to comment.