From e5ca39aab620f1292115dc937d858b6ae1aefef8 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 28 Sep 2024 15:30:26 -0400 Subject: [PATCH] Simplify zsh-completion-fix.nix using sharedModules Refs, - https://github.com/nix-community/home-manager/issues/2562. - https://github.com/nix-community/home-manager/pull/5458 --- nix-darwin/zsh-completion-fix.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix-darwin/zsh-completion-fix.nix b/nix-darwin/zsh-completion-fix.nix index be3c1867..5d087ccf 100644 --- a/nix-darwin/zsh-completion-fix.nix +++ b/nix-darwin/zsh-completion-fix.nix @@ -1,8 +1,8 @@ -# Fix broken autocompletion. See https://github.com/nix-community/home-manager/issues/2562. -{ flake, ... }: - +# Fix broken autocompletion in home-manager zsh. +# See https://github.com/nix-community/home-manager/issues/2562. +# TODO: Remove this after https://github.com/nix-community/home-manager/pull/5458 { - home-manager.users.${flake.config.people.myself}.imports = [ + home-manager.sharedModules = [ ({ config, ... }: { programs.zsh.initExtraBeforeCompInit = '' fpath+=("${config.home.profileDirectory}"/share/zsh/site-functions "${config.home.profileDirectory}"/share/zsh/$ZSH_VERSION/functions "${config.home.profileDirectory}"/share/zsh/vendor-completions)