Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,32 @@ Safety notes:
- Installer creates timestamped backups before replacing files.
- `boo uninstall` can restore your previous Ghostty config when a backup exists.

## Install with Nix

```bash
nix profile install github:Ansub/boo
boo doctor fix
```

Or as a flake input in your config:

```nix
# flake.nix
inputs.boo.url = "github:Ansub/boo";
```

```nix
# Add boo to packages
environment.systemPackages = [ inputs.boo.packages.${system}.default ];

# Source shell integration (home-manager)
programs.zsh.initExtra = ''
source "${inputs.boo.packages.${system}.default}/shell/boo.zsh"
'';
```

Run `boo doctor fix` once after install to bootstrap `~/.config/boo/`.

## Verify It Worked

```bash
Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
description = "Boo — a CLI for managing Ghostty + Zsh terminal themes";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
boo = pkgs.callPackage ./package.nix { };
in
{
packages = {
default = boo;
boo = boo;
};
}
);
}
43 changes: 43 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib, stdenvNoCC, makeWrapper, bash, coreutils, gnused, gnugrep, gawk, findutils }:

stdenvNoCC.mkDerivation {
pname = "boo";
version = "0-unstable";

src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./bin
./art
./themes
./shell
./configs
./scripts
];
};

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall

# Preserve repo layout at $out so bin/boo's fallback paths
# (../themes, ../art, ../shell, ../configs) resolve correctly
mkdir -p $out/bin
cp -r art themes shell configs scripts $out/

install -Dm755 bin/boo $out/bin/boo
wrapProgram $out/bin/boo \
--prefix PATH : ${lib.makeBinPath [ bash coreutils gnused gnugrep gawk findutils ]}

runHook postInstall
'';

meta = {
description = "CLI for managing Ghostty + Zsh terminal themes, fonts, and splash art";
homepage = "https://github.com/Ansub/boo";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
mainProgram = "boo";
};
}