Skip to content

Commit 42a4f21

Browse files
committed
feat(*): NxChad initial
0 parents  commit 42a4f21

34 files changed

+4614
-0
lines changed

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
watch_file flake.lock
2+
watch_file flake.nix
3+
watch_dir top-level
4+
use lorri --flake .

.github/workflows/ci.yml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: "CI"
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
actions: read
10+
contents: read
11+
pages: write
12+
id-token: write
13+
deployments: write
14+
15+
jobs:
16+
build:
17+
needs:
18+
- nixos
19+
- home-manager
20+
- standalone
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: DeterminateSystems/nix-installer-action@v16
25+
with:
26+
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
extra-conf: "experimental-features = nix-command flakes"
28+
- uses: cachix/cachix-action@v16
29+
with:
30+
name: fmcachix
31+
extraPullNames: nix-community
32+
skipPush: true
33+
- name: Build search
34+
run: nix build ./dev#search -L
35+
- name: Deploy
36+
uses: cloudflare/wrangler-action@v3
37+
with:
38+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
39+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
40+
command: pages deploy ./result --branch master --project-name=nxchad-options
41+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
42+
nixos:
43+
strategy:
44+
matrix:
45+
os: [ubuntu-latest]
46+
runs-on: ${{ matrix.os }}
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: DeterminateSystems/nix-installer-action@v16
50+
with:
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
extra-conf: "experimental-features = nix-command flakes"
53+
- uses: cachix/cachix-action@v16
54+
with:
55+
name: fmcachix
56+
extraPullNames: nix-community
57+
skipPush: true
58+
- name: build
59+
run: nix run nixpkgs#nixos-rebuild -- build --flake ./dev#x86_64
60+
# nix-darwin:
61+
# runs-on: macos-latest
62+
# steps:
63+
# - uses: actions/checkout@v4
64+
# - uses: DeterminateSystems/nix-installer-action@v16
65+
# with:
66+
# github-token: ${{ secrets.GITHUB_TOKEN }}
67+
# extra-conf: "experimental-features = nix-command flakes"
68+
# - uses: cachix/cachix-action@v16
69+
# with:
70+
# name: fmcachix
71+
# extraPullNames: nix-community
72+
# skipPush: true
73+
# - name: build
74+
# run: nix run nix-darwin/master#darwin-rebuild -- build --flake ./dev#aarch64
75+
home-manager:
76+
strategy:
77+
matrix:
78+
os:
79+
- ubuntu-latest
80+
# - macos-latest
81+
runs-on: ${{ matrix.os }}
82+
steps:
83+
- uses: actions/checkout@v4
84+
- uses: DeterminateSystems/nix-installer-action@v16
85+
with:
86+
github-token: ${{ secrets.GITHUB_TOKEN }}
87+
extra-conf: "experimental-features = nix-command flakes"
88+
- uses: cachix/cachix-action@v16
89+
with:
90+
name: fmcachix
91+
extraPullNames: nix-community
92+
skipPush: true
93+
- name: Build
94+
env:
95+
NAME: ${{ matrix.os == 'ubuntu-latest' && 'x86_64-linux' || 'aarch64-darwin' }}
96+
run: |
97+
nix run github:nix-community/home-manager --override-input nixpkgs nixpkgs -- \
98+
build --flake ./dev#${NAME}
99+
standalone:
100+
strategy:
101+
matrix:
102+
os:
103+
- ubuntu-latest
104+
# - macos-latest
105+
runs-on: ${{ matrix.os }}
106+
steps:
107+
- uses: actions/checkout@v4
108+
- uses: DeterminateSystems/nix-installer-action@v16
109+
with:
110+
github-token: ${{ secrets.GITHUB_TOKEN }}
111+
extra-conf: "experimental-features = nix-command flakes"
112+
- uses: cachix/cachix-action@v16
113+
with:
114+
name: fmcachix
115+
extraPullNames: nix-community
116+
skipPush: true
117+
- name: Build
118+
run: |
119+
nix build ./dev
120+
./result/bin/nvim --version

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.direnv
2+
result
3+
result-*

0 commit comments

Comments
 (0)