diff --git a/modules/programs/antidote.nix b/modules/programs/antidote.nix index 0120f4e84..a26c47928 100644 --- a/modules/programs/antidote.nix +++ b/modules/programs/antidote.nix @@ -39,7 +39,7 @@ in { ### move zsh_plugins.txt programs.zsh.initExtraBeforeCompInit = '' ## home-manager/antidote begin : - source ${cfg.package}/antidote.zsh + source ${cfg.package}/share/antidote/antidote.zsh ${optionalString cfg.useFriendlyNames "zstyle ':antidote:bundle' use-friendly-names 'yes'"} bundlefile=${relToDotDir ".zsh_plugins.txt"} diff --git a/tests/modules/programs/antidote/antidote.nix b/tests/modules/programs/antidote/antidote.nix index 826ffe5aa..04ba6dd56 100644 --- a/tests/modules/programs/antidote/antidote.nix +++ b/tests/modules/programs/antidote/antidote.nix @@ -1,7 +1,6 @@ -{ ... }: +{ pkgs, ... }: let relToDotDirCustom = ".zshplugins"; - in { programs.zsh = { enable = true; @@ -20,7 +19,7 @@ in { nmt.script = '' assertFileContains home-files/${relToDotDirCustom}/.zshrc \ - 'source @antidote@/antidote.zsh' + 'source @antidote@/share/antidote/antidote.zsh' assertFileContains home-files/${relToDotDirCustom}/.zshrc \ 'antidote load' assertFileContains home-files/${relToDotDirCustom}/.zshrc \