modue stuff

This commit is contained in:
Alexander Khodyrev 2025-08-26 21:46:35 +03:00
parent 48c4ac4f59
commit fe7d13fcb9

View file

@ -99,23 +99,23 @@
configFile = tomlFormat.generate "llm-shell-hint-config" cfg.settings; configFile = tomlFormat.generate "llm-shell-hint-config" cfg.settings;
in in
lib.mkIf cfg.enable { lib.mkIf cfg.enable {
home.packages = [ self.packages."${system}".llm-shell-hint ]; home.packages = [ self.packages."${system}".default ];
programs.bash.initExtra = mkIf cfg.enableBashIntegration '' programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
${ ${
lib.getExe self.packages."${system}".llm-shell-hint lib.getExe self.packages."${system}".default
} init bash --config-file "${configFile}" | source } init bash --config-file "${configFile}" | source
''; '';
programs.zsh.initExtra = mkIf cfg.enableZshIntegration '' programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
${ ${
lib.getExe self.packages."${system}".llm-shell-hint lib.getExe self.packages."${system}".default
} init zsh --config-file "${configFile}" | source } init zsh --config-file "${configFile}" | source
''; '';
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration '' programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
${ ${
lib.getExe self.packages."${system}".llm-shell-hint lib.getExe self.packages."${system}".default
} init fish --config-file "${configFile}" | source } init fish --config-file "${configFile}" | source
''; '';
}; };