Skip to content

Commit

Permalink
refactor: now we are on nix
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Dec 9, 2023
1 parent 1489357 commit a19a129
Show file tree
Hide file tree
Showing 67 changed files with 16,892 additions and 251 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake --accept-flake-config
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
**/_sources/**/* linguist-generated -diff
13 changes: 13 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Nvim conf

My personal neovim config

Run via nix:

```sh
nix run github:isabelroses/nvim
```

### Thanks to
- [nekowinston](https://github.com/nekowinston/neovim.drv)
- [notashelf](https://github.com/NotAShelf/neovim-flake)
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: "03:00"
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and populate cache

on:
workflow_dispatch:
schedule:
- cron: "0 3 * * 3" # 03:00 on Wednesday, this is beacuse we want to update 1hr after the inputs update

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- default
- neovide
- nvim-treesitter
- telescope-fzf-native
- markdown-preview

steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
remove-codeql: true

- name: Checkout
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty

- name: Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Setup cachix
uses: cachix/cachix-action@v13
with:
name: isabelroses
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
authToken: "${{ secrets.CACHIX_TOKEN }}"

- name: Build from the matrix
run: nix build -L .#${{ matrix.package }}
36 changes: 36 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update Flake Inputs
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * 3" # 02:00 on Wednesday

jobs:
update-lockfile:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Install Nix
uses: nixbuild/nix-quick-install-action@v26

- name: Update Sources
run: |
nix run github:berberman/nvfetcher
pushd pkgs/nvim-treesitter
nix run github:berberman/nvfetcher
popd
- name: Update Lockfile
uses: DeterminateSystems/update-flake-lock@main
id: update
with:
pr-title: "chore(deps): update inputs"
commit-msg: "chore(deps): update inputs"
token: ${{ secrets.GITHUB_TOKEN }}

- name: Merge Changes
run: gh pr merge ${{ steps.update.outputs.pull-request-number }} --squash --delete-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
tt.*
.tests
doc/tags
debug
.repro
foo.*
*.log
data
lazy-lock.json
result
.pre-commit-config.yaml
.devenv/
5 changes: 5 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Lua.runtime.version": "Lua 5.1",
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.checkThirdParty": false
}
10 changes: 10 additions & 0 deletions .neoconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"neodev": {
"library": {
"enabled": true
}
},
"lspconfig": {
"sumneko_lua": {}
}
}
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2023 isabelroses

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Loading

0 comments on commit a19a129

Please sign in to comment.