override module doc: fix #310
This commit is contained in:
parent
0f72f26a57
commit
c30e8c5ca2
|
@ -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
|
`modulesPath` for each channel as `<channelName>ModulesPath`. And you can use
|
||||||
`disabledModules` to remove modules from the current channel.
|
`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
|
```nix
|
||||||
{ latestModulesPath }: {
|
{ latestModulesPath }:
|
||||||
modules = [ "${latestModulesPath}/programs/zsh/zsh.nix" ];
|
{
|
||||||
|
import = [ "${latestModulesPath}/programs/zsh/zsh.nix" ];
|
||||||
disabledModules = [ "programs/zsh/zsh.nix" ];
|
disabledModules = [ "programs/zsh/zsh.nix" ];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue