24 Commits

Author SHA1 Message Date
12394ad542 chore(flake): update flake.lock 2026-01-14 03:15:21 +00:00
7561b0e946 chore(flake): update flake.lock 2026-01-12 03:15:28 +00:00
398745443d feat(conform): install asdf-vm instead of tenv for terraform formatting
All checks were successful
check-commits / Check commits (pull_request) Successful in 8s
build-flake / build (pull_request) Successful in 4m28s
build-flake / Build flake (push) Successful in 4m27s
build-flake / Release a new version (push) Successful in 10s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 6s
Sync flake lock with main nix-configuration project / Build flake (push) Successful in 4m46s
Sync flake lock with main nix-configuration project / Release a new version (push) Successful in 10s
2026-01-08 10:41:22 +02:00
fba52b1f2f chore(flake): update flake.lock 2026-01-08 03:15:25 +00:00
702b8808cb chore(flake): update flake.lock 2026-01-07 03:15:21 +00:00
4535cb4db5 chore(flake): update flake.lock 2026-01-05 03:15:20 +00:00
d93120d43e chore(flake): update flake.lock 2026-01-04 00:24:46 +00:00
9418deddae ci: update
Some checks failed
build-flake / Build flake (push) Has been cancelled
build-flake / Release a new version (push) Has been cancelled
2026-01-04 02:24:17 +02:00
fedfd9235c ci: update
Some checks failed
build-flake / Release a new version (push) Has been cancelled
build-flake / Build flake (push) Has been cancelled
2026-01-03 18:09:27 +02:00
0eed1c5008 ci: run release update only if any new changes are exist
All checks were successful
build-flake / Build flake (push) Successful in 5m42s
build-flake / Release a new version (push) Successful in 8s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 6m3s
Sync flake lock with main nix-configuration project / Release a new version (push) Successful in 8s
2026-01-01 20:20:29 +02:00
85a295744b ci: run release job
Some checks failed
build-flake / Build flake (push) Successful in 5m37s
build-flake / Release a new version (push) Successful in 9s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 17s
Sync flake lock with main nix-configuration project / Release a new version (push) Failing after 8s
2025-12-31 22:11:45 +02:00
adfcc88ef5 fix(flake): update flake.lock 2025-12-31 03:19:30 +00:00
ab55d46cb4 fix: update nixos 25.05->25.11
All checks were successful
build-flake / Build flake (push) Successful in 5m7s
build-flake / Release a new version (push) Successful in 13s
Sync flake lock with main nix-configuration project / Sync flake lock with main nix-configuration project (push) Successful in 4m23s
2025-12-30 21:37:11 +02:00
dc70f0e701 ci: commit auto sync updates as fix
Some checks failed
build-flake / Release a new version (push) Has been cancelled
build-flake / Build flake (push) Has been cancelled
2025-12-30 21:35:15 +02:00
d7eb04e754 chore(flake): update flake.lock 2025-12-30 19:24:17 +00:00
24f8e51285 ci: auto sync flake.lock
All checks were successful
build-flake / Build flake (push) Successful in 8m9s
build-flake / Release a new version (push) Successful in 9s
2025-12-30 21:16:44 +02:00
49cc2b51a6 ci: add gitea token
All checks were successful
build-flake / Build flake (push) Successful in 8m13s
build-flake / Release a new version (push) Successful in 21s
2025-12-30 21:00:19 +02:00
baa4928b0e ci: auto sync flake.lock
All checks were successful
build-flake / Build flake (push) Successful in 4m39s
build-flake / Release a new version (push) Successful in 9s
2025-12-30 20:54:09 +02:00
15233d9ea5 fix(conform): disable slow formatters in before_save hook, and format them after save
All checks were successful
build-flake / Build flake (push) Successful in 4m27s
build-flake / Release a new version (push) Successful in 8s
2025-12-29 12:27:55 +02:00
6d379f7a02 chore(flake): bump version
All checks were successful
build-flake / Build flake (push) Successful in 4m57s
build-flake / Release a new version (push) Successful in 8s
2025-12-29 12:11:44 +02:00
a513133bbe chore: add editorconfig 2025-12-29 12:11:44 +02:00
42719a9f92 feat(conform): do not disable formatters on timeout 2025-12-29 12:11:44 +02:00
06ccfa6b64 feat(conform): re-enable auto formatting, fix #47 2025-12-29 12:11:44 +02:00
6ab4db91ab chore(deps): update actions/checkout action to v6
All checks were successful
check-commits / Check commits (pull_request) Successful in 17s
build-flake / build (pull_request) Successful in 13m39s
build-flake / Build flake (push) Successful in 7m44s
build-flake / Release a new version (push) Successful in 9s
2025-12-03 00:02:43 +00:00
6 changed files with 92 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup sudo (required for the next step)
run: apt-get update && apt-get install -y sudo
- name: Setup nix
@@ -18,7 +18,7 @@ jobs:
extra_nix_config: |
experimental-features = nix-command flakes
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
nix_path: nixpkgs=channel:nixos-25.05
nix_path: nixpkgs=channel:nixos-25.11
- uses: cachix/cachix-action@v16
with:
name: palkx

View File

@@ -12,4 +12,4 @@ jobs:
release:
name: Release a new version
needs: build
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.0
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.3

View File

@@ -0,0 +1,54 @@
name: Sync flake lock with main nix-configuration project
on:
schedule:
- cron: "15 3 * * *"
workflow_dispatch:
jobs:
update:
permissions:
contents: write
name: Sync flake lock with main nix-configuration project
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.checkChanges.outputs.CHANGES }}
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Checkout nix-configuration repository
uses: actions/checkout@v6
with:
repository: xaked/nix-config
path: nix-config
ref: master
token: ${{ secrets.NIX_CONFIGURATION_GITEA_CLONE_TOKEN }}
- name: Check for update and perform update
id: checkChanges
run: |
git config user.name gitea-bot
git config user.email bot@git.palkoi.net
git config --global user.email bot@git.palkoi.net
git config --global user.name gitea-bot
tmpfile="$(mktemp)"
jq -srM '.[1].nodes.nixpkgs = .[0].nodes.nixpkgs_2|.[1].nodes.nixpkgs_2 = .[0].nodes.nixpkgs_2 | .[1]' ./nix-config/flake.lock flake.lock > "$tmpfile"
cat "$tmpfile" > flake.lock
git add flake.lock
if [ -n "$(git diff --cached)" ]; then git diff --cached; echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi
- name: Commit updates
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
run: |
git commit --no-gpg-sign -m 'chore(flake): update flake.lock'
git push
build:
name: Build flake
if: ${{ needs.update.outputs.changes == 'y' }}
needs: update
uses: ./.gitea/workflows/build-flake.yml
release:
name: Release a new version
needs: build
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.1.0
with:
ref: ${{ github.ref_name }}

View File

@@ -1,2 +1,3 @@
[commit_types]
version = { bump_patch = true, changelog_title = "Version" }
chore = { bump_patch = true, changelog_title = "Chore" }

View File

@@ -1,3 +1,4 @@
{ pkgs, ... }:
{
config = {
extraConfigLuaPre =
@@ -41,7 +42,12 @@
plugins.conform-nvim = {
enable = true;
autoInstall.enable = true;
autoInstall = {
enable = true;
overrides = {
"terraform_fmt" = pkgs.asdf-vm;
};
};
settings = {
default_format_opts.lsp_format = "fallback";
formatters_by_ft = {
@@ -124,34 +130,33 @@
return
end
-- if slow_format_filetypes[vim.bo[bufnr].filetype] then
-- return
-- end
if slow_format_filetypes[vim.bo[bufnr].filetype] then
return
end
local function on_format(err)
return
-- if err and err:match("timeout$") then
-- slow_format_filetypes[vim.bo[bufnr].filetype] = true
-- end
if err and err:match("timeout$") then
slow_format_filetypes[vim.bo[bufnr].filetype] = true
end
end
return { timeout_ms = 200, lsp_fallback = true }, on_format
end
'';
# format_after_save = # Lua
# ''
# function(bufnr)
# if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
# return
# end
#
# if not slow_format_filetypes[vim.bo[bufnr].filetype] then
# return
# end
#
# return { lsp_fallback = true }
# end
# '';
format_after_save = # Lua
''
function(bufnr)
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
return
end
if not slow_format_filetypes[vim.bo[bufnr].filetype] then
return
end
return { lsp_fallback = true }
end
'';
log_level = "warn";
notify_on_error = true;
notify_no_formatters = false;

14
flake.lock generated
View File

@@ -87,11 +87,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1766473571,
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
"lastModified": 1768242861,
"narHash": "sha256-F4IIxa5xDHjtrmMcayM8lHctUq1oGltfBQu2+oqDWP4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
"rev": "1327e798cb055f96f92685df444e9a2c326ab5ed",
"type": "github"
},
"original": {
@@ -118,15 +118,15 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1766473571,
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
"lastModified": 1768242861,
"narHash": "sha256-F4IIxa5xDHjtrmMcayM8lHctUq1oGltfBQu2+oqDWP4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
"rev": "1327e798cb055f96f92685df444e9a2c326ab5ed",
"type": "github"
},
"original": {
"owner": "NixOS",
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"