refactor(flake): centralize custom packages
This commit was merged in pull request #178.
This commit is contained in:
@@ -12,18 +12,14 @@ let
|
||||
piDir = "${config.users.users.${user}.home}/.pi/agent";
|
||||
in
|
||||
{
|
||||
options.modules.shell.pi = {
|
||||
enable = lib.mkEnableOption "Pi, a terminal coding agent, configured through home-manager";
|
||||
};
|
||||
options.modules.shell.pi.enable =
|
||||
lib.mkEnableOption "Pi, a terminal coding agent, configured through home-manager";
|
||||
|
||||
config = lib.mkIf config.modules.shell.pi.enable {
|
||||
home-manager.users.${user} = {
|
||||
programs.pi-coding-agent = {
|
||||
enable = true;
|
||||
package = pkgs.pi-coding-agent.overrideAttrs {
|
||||
src = ../../../../../third_party/pi;
|
||||
patches = [ ];
|
||||
};
|
||||
package = pkgs.alexion.pi-coding-agent;
|
||||
|
||||
settings = {
|
||||
defaultProvider = "openai-codex";
|
||||
|
||||
Reference in New Issue
Block a user