Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cernoh/omp-flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

20 Commits

Repository files navigation

omp-flake

Nix flake packaging for Oh My Pi.

What this flake provides

  • A default package (packages.<system>.default) that installs the omp binary.
  • A default app (apps.<system>.default) for nix run.
  • A Home Manager module (homeManagerModules.default) exposing programs.oh-my-pi.

Supported systems:

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin

Usage

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 which oh-my-pi package gets installed. By default, this uses omp-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>.source or <name>.text must be set.

Development

Validate flake outputs:

nix flake check

About

Nix flake for oh-my-pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /