refactor(flake): move custom packages to overlay

This commit is contained in:
2026-10-12 11:13:20 -04:00
parent 6532a822cd
commit 022e284996
8 changed files with 83 additions and 31 deletions

View File

@@ -14,16 +14,19 @@ in
{
options.modules.shell.pi = {
enable = lib.mkEnableOption "Pi, a terminal coding agent, configured through home-manager";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.alexion.pi-coding-agent;
description = "Pi package installed for the primary user.";
};
};
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 = config.modules.shell.pi.package;
settings = {
defaultProvider = "openai-codex";