From c30e8c5ca2c1aa3772b0bb1ac70eabb491fbea9c Mon Sep 17 00:00:00 2001 From: almostnobody <1583339+almostnobody@users.noreply.github.com> Date: Tue, 8 Jun 2021 22:10:17 +0300 Subject: [PATCH] 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..801703bf 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 }: +{ + import = [ "${latestModulesPath}/programs/zsh/zsh.nix" ]; disabledModules = [ "programs/zsh/zsh.nix" ]; } ```