forked from pub-solar/os
Merge pull request #311 from almostnobody/patch-1
override module doc: fix #310
This commit is contained in:
parent
0f72f26a57
commit
4d1b3a5e13
|
@ -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" ];
|
{
|
||||||
|
imports = [ "${latestModulesPath}/programs/zsh/zsh.nix" ];
|
||||||
disabledModules = [ "programs/zsh/zsh.nix" ];
|
disabledModules = [ "programs/zsh/zsh.nix" ];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue