Nix flake packaging for Oh My Pi.
- A default package (
packages.<system>.default) that installs theompbinary. - A default app (
apps.<system>.default) fornix run. - A Home Manager module (
homeManagerModules.default) exposingprograms.oh-my-pi.
Supported systems:
x86_64-linuxaarch64-linuxx86_64-darwinaarch64-darwin
Run directly:
nix run github:cernoh/omp-flake
Build package:
nix build github:cernoh/omp-flake
Use in another flake:
{ inputs.omp-flake.url = "github:cernoh/omp-flake"; outputs = { self, nixpkgs, omp-flake, ... }: { # Example: expose package packages.x86_64-linux.omp = omp-flake.packages.x86_64-linux.default; }; }
Home Manager module example:
{ imports = [ omp-flake.homeManagerModules.default ]; programs.oh-my-pi = { enable = true; agents = { "my-agent.md".text = '' # My Agent This is my custom agent definition. ''; }; }; }
Available Home Manager options:
programs.oh-my-pi.enable: Enables installation of Oh My Pi through Home Manager.programs.oh-my-pi.package: Overrides whichoh-my-pipackage gets installed. By default, this usesomp-flake.packages.<system>.default.programs.oh-my-pi.agents: Attribute set of markdown agent files installed to~/.omp/agents/agent/; each attribute name becomes the destination filename and must end with.md.<name>.source: Path to a markdown file copied into~/.omp/agents/agent/<name>.<name>.text: Inline markdown contents written to~/.omp/agents/agent/<name>.<name>.executable: Marks the installed file as executable (default:false).- Exactly one of
<name>.sourceor<name>.textmust be set.
Validate flake outputs:
nix flake check