Skip to content

Commit

Permalink
not sure how that worked???
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Apr 16, 2024
1 parent 3977f3d commit 7faaeb9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

concurrency:
group: default
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand All @@ -20,11 +20,13 @@ jobs:
- uses: cachix/install-nix-action@v25
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v4
- uses: cachix/cachix-action@v14
with:
name: willruggiano
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix flake check --accept-flake-config --impure
- run: nix build --accept-flake-config
- run: cachix pin willruggiano nvim-drv "$(nix build --accept-flake-config --print-out-paths)"
- run: nix flake check --impure
- run: nix build
- run: cachix pin willruggiano nvim-drv "$(nix build --print-out-paths)"
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

concurrency:
group: default
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
with:
name: willruggiano
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: nix run .#ci
- name: nix run .#update
run: |
git config --global user.name 'github-actions[bot]' &&
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' &&
Expand Down
9 changes: 5 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,25 @@
name = "push.sh";
runtimeInputs = with pkgs; [cachix jq];
text = ''
nix flake archive --accept-flake-config --json \
nix flake archive --json \
| jq -r '.path,(.inputs|to_entries[].value.path)' \
| cachix push willruggiano;
nix build --accept-flake-config --json \
nix build --json \
| jq -r '.[].outputs | to_entries[].value' \
| cachix push willruggiano;
cachix pin willruggiano nvim-drv "$(nix build --accept-flake-config --print-out-paths)"
cachix pin willruggiano nvim-drv "$(nix build --print-out-paths)"
'';
};
update.program = pkgs.writeShellApplication {
name = "update.sh";
runtimeInputs = with pkgs; [niv];
text = ''
nix flake update --accept-flake-config &&
nix flake update &&
niv update &&
nix run .#nvim-treesitter.update-grammars -- ./pkgs/nvim-treesitter &&
nix build &&
git commit -am 'chore: 🌶️🌶️🌶️' &&
git push
'';
Expand Down
2 changes: 1 addition & 1 deletion plugins/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ return function()
null_ls.builtins.diagnostics.jsonlint,
null_ls.builtins.diagnostics.luacheck.with { extra_args = { "--globals", "vim", "--no-max-line-length" } },
null_ls.builtins.diagnostics.shellcheck.with { filetypes = { "bash", "sh" } },
null_ls.builtins.diagnostics.sqlfluff.with { extra_args = { "--dialect", "postgres" } },
-- null_ls.builtins.diagnostics.sqlfluff.with { extra_args = { "--dialect", "postgres" } },
null_ls.builtins.diagnostics.statix,
},
}
Expand Down

0 comments on commit 7faaeb9

Please sign in to comment.