From 4d1b3a5e132b924ea6f945831ab0ee25407c996b Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Tue, 8 Jun 2021 14:07:19 -0700 Subject: [PATCH] Merge pull request #311 from almostnobody/patch-1 override module doc: fix #310 --- doc/concepts/overrides.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/concepts/overrides.md b/doc/concepts/overrides.md index 303108c0..610fde04 100644 --- a/doc/concepts/overrides.md +++ b/doc/concepts/overrides.md @@ -27,10 +27,11 @@ You can also pull modules from other channels. All modules have access to the `modulesPath` for each channel as `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" ]; } ```