From 080b9940fa4b1e5b5b65557ea71e5659bec73012 Mon Sep 17 00:00:00 2001 From: Isaac Corbrey Date: Sat, 25 Jul 2026 08:29:31 -0400 Subject: [PATCH] pi: Add module skeleton --- modules/home/default.nix | 1 + modules/home/pi.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 modules/home/pi.nix 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; + }); + }; +} -- 2.51.2