Skip to content

Commit ce9708c

Browse files
committed
Initial implementation
0 parents  commit ce9708c

26 files changed

Lines changed: 4890 additions & 0 deletions

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source_up
2+
use flake;

.github/workflows/nix.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Nix CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "flake.nix"
8+
- "flake.lock"
9+
- "nix/**"
10+
- "ghostty/**"
11+
- "zellij/**"
12+
- "tmux/**"
13+
- "fish/**"
14+
- "zsh/**"
15+
- "delta/**"
16+
- "bat/**"
17+
- "helix/**"
18+
- "zed/**"
19+
- "nvim/**"
20+
- ".github/workflows/nix.yml"
21+
pull_request:
22+
branches: [main]
23+
paths:
24+
- "flake.nix"
25+
- "flake.lock"
26+
- "nix/**"
27+
- "ghostty/**"
28+
- "zellij/**"
29+
- "tmux/**"
30+
- "fish/**"
31+
- "zsh/**"
32+
- "delta/**"
33+
- "bat/**"
34+
- "helix/**"
35+
- "zed/**"
36+
- "nvim/**"
37+
- ".github/workflows/nix.yml"
38+
39+
jobs:
40+
nix-build:
41+
strategy:
42+
matrix:
43+
os: [ubuntu-latest]
44+
runs-on: ${{ matrix.os }}
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v4
48+
49+
- name: Install Nix
50+
uses: cachix/install-nix-action@v26
51+
with:
52+
nix_path: nixpkgs=channel:nixos-unstable
53+
54+
- name: Check flake
55+
run: nix flake check
56+
57+
- name: Build package
58+
run: nix build
59+
60+
- name: Verify package contents
61+
run: |
62+
result=$(nix build --no-link --print-out-paths)
63+
echo "Package built at: $result"
64+
65+
# Verify all theme directories exist
66+
for dir in ghostty zellij tmux fish zsh delta bat helix zed nvim; do
67+
if [ ! -d "$result/$dir" ]; then
68+
echo "ERROR: Missing directory: $dir"
69+
exit 1
70+
fi
71+
echo "✓ Found directory: $dir"
72+
done
73+
74+
echo "All theme directories present!"
75+
76+
- name: Format check
77+
run: nix fmt -- --check .
78+
79+
test-integration:
80+
runs-on: ubuntu-latest
81+
needs: nix-build
82+
steps:
83+
- name: Checkout code
84+
uses: actions/checkout@v4
85+
86+
- name: Install Nix
87+
uses: cachix/install-nix-action@v26
88+
with:
89+
nix_path: nixpkgs=channel:nixos-unstable
90+
91+
- name: Run integration tests
92+
run: |
93+
nix-build nix/tests/default.nix -A package-builds --impure
94+
nix-build nix/tests/default.nix -A home-manager-module-evaluates --impure
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish VS Code Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- "vscode-v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
20+
- name: Publish to VS Code Marketplace
21+
uses: HaaLeo/publish-vscode-extension@v2
22+
id: publishToMarketplace
23+
with:
24+
pat: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
25+
registryUrl: https://marketplace.visualstudio.com
26+
packagePath: ./vscode
27+
skipDuplicate: true
28+
29+
- name: Publish to Open VSX Registry
30+
uses: HaaLeo/publish-vscode-extension@v2
31+
with:
32+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
33+
extensionFile: ${{ steps.publishToMarketplace.outputs.vsixPath }}
34+
skipDuplicate: true
35+
continue-on-error: true

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Nix
2+
result
3+
result-*
4+
.direnv/
5+
6+
# Editor
7+
.vscode/
8+
.idea/
9+
*.swp
10+
*.swo
11+
*~
12+
13+
# OS
14+
.DS_Store
15+
Thumbs.db

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 715d
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)