Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Nov 18, 2023
0 parents commit 80c20f9
Show file tree
Hide file tree
Showing 19 changed files with 2,091 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
fi
use flake
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
push:
branches: [main]

jobs:
lints:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Build package
run: nix build .
- name: Build example
run: nix build --no-write-lock-file ./example#nixosConfigurations.example.config.system.build.toplevel
23 changes: 23 additions & 0 deletions .github/workflows/update-deps-lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
push:
paths: deps.edn

jobs:
ci:
name: Update deps-lock
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update deps-lock.json
run: nix run github:jlesquembre/clj-nix#deps-lock
- name: Commit changes
run: |
git config user.name "sohalt"
git config user.email '[email protected]'
git add deps-lock.json
git commit -m "Update deps-lock.json"
git push
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.DS_Store
.idea
*.log
tmp/

/target
/classes
/checkouts
profiles.clj
pom.xml
pom.xml.asc
*.jar
*.class
/.lein-*
/.nrepl-port
/.prepl-port
/.cpcache

.clj-kondo/
.lsp/
.clerk/

.direnv/

result
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Solisplit

Solisplit is an application to share costs in a more solidaric way.

See [about](./resources/about.md) for an explanation on how it works.

## Hosted deployment

There is a hosted instance at https://solisplit.soha.lt.

## Self-hosting

The easiest way to self host is using [NixOS](https://nixos.org/) with [flakes](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html).
See `example/flake.nix` for an example deployment.

Alternantively you can also get an executable using `nix build github:sohalt/solisplit`, which you can start any way you like.
2 changes: 2 additions & 0 deletions bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{:tasks
{dev {:task (clojure "-X:dev")}}}
Loading

0 comments on commit 80c20f9

Please sign in to comment.