diff --git a/modules/home/default.nix b/modules/home/default.nix index 9ae70ca..85c6e3f 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -31,6 +31,7 @@ ./obs-studio.nix ./obsidian.nix ./opencode.nix + ./pi.nix ./rust ./skills ./starship.nix diff --git a/modules/home/pi.nix b/modules/home/pi.nix new file mode 100644 index 0000000..0761e9d --- /dev/null +++ b/modules/home/pi.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + utils, + ... +}: let + cfg = config.modules.home.pi; +in { + options.modules.home.pi = { + enable = lib.mkEnableOption "pi, the terminal-based coding agent harness (earendil-works/pi)"; + omp = utils.mkToggle "Oh My Pi (omp) - the batteries-included can1357/oh-my-pi fork of pi" true; + }; + + config = lib.mkIf cfg.enable { + home.packages = + [pkgs.pi] + ++ (utils.mkIfOptions cfg { + omp = pkgs.omp; + }); + }; +}