Compare commits
4 Commits
1.10.3
...
feat/updat
| Author | SHA1 | Date | |
|---|---|---|---|
| eae4cbc30f | |||
| 6286e367c7 | |||
| 543ccb7573 | |||
| 4cdac1381b |
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v5
|
||||||
- name: Setup sudo (required for the next step)
|
- name: Setup sudo (required for the next step)
|
||||||
run: apt-get update && apt-get install -y sudo
|
run: apt-get update && apt-get install -y sudo
|
||||||
- name: Setup nix
|
- name: Setup nix
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
nix_path: nixpkgs=channel:nixos-25.11
|
nix_path: nixpkgs=channel:nixos-25.05
|
||||||
- uses: cachix/cachix-action@v16
|
- uses: cachix/cachix-action@v16
|
||||||
with:
|
with:
|
||||||
name: palkx
|
name: palkx
|
||||||
|
|||||||
@@ -1,61 +0,0 @@
|
|||||||
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
|
|
||||||
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: Setup sudo and jq (required for the next step)
|
|
||||||
run: apt-get update && apt-get install -y sudo jq
|
|
||||||
- name: Setup nix
|
|
||||||
uses: cachix/install-nix-action@v31
|
|
||||||
with:
|
|
||||||
extra_nix_config: |
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
||||||
nix_path: nixpkgs=channel:nixos-25.11
|
|
||||||
- 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 echo 'CHANGES=y'>>$GITHUB_OUTPUT; else echo 'CHANGES=n'>>$GITHUB_OUTPUT; fi
|
|
||||||
- name: Build nix flake
|
|
||||||
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
|
|
||||||
run: |
|
|
||||||
nix build .
|
|
||||||
- name: Check nix flake
|
|
||||||
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
|
|
||||||
run: nix flake check --all-systems
|
|
||||||
- name: Commit updates
|
|
||||||
if: ${{ steps.checkChanges.outputs.CHANGES == 'y' }}
|
|
||||||
run: |
|
|
||||||
git commit --no-gpg-sign -m 'chore(flake): update flake.lock'
|
|
||||||
git push
|
|
||||||
release:
|
|
||||||
name: Release a new version
|
|
||||||
needs: update
|
|
||||||
uses: xaked/actions/.gitea/workflows/cog-release.yml@2.0.0
|
|
||||||
1
cog.toml
1
cog.toml
@@ -1,3 +1,2 @@
|
|||||||
[commit_types]
|
[commit_types]
|
||||||
version = { bump_patch = true, changelog_title = "Version" }
|
version = { bump_patch = true, changelog_title = "Version" }
|
||||||
chore = { bump_patch = true, changelog_title = "Chore" }
|
|
||||||
|
|||||||
@@ -124,33 +124,34 @@
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
-- if slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
|
|
||||||
local function on_format(err)
|
local function on_format(err)
|
||||||
if err and err:match("timeout$") then
|
return
|
||||||
slow_format_filetypes[vim.bo[bufnr].filetype] = true
|
-- if err and err:match("timeout$") then
|
||||||
end
|
-- slow_format_filetypes[vim.bo[bufnr].filetype] = true
|
||||||
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
return { timeout_ms = 200, lsp_fallback = true }, on_format
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
format_after_save = # Lua
|
# format_after_save = # Lua
|
||||||
''
|
# ''
|
||||||
function(bufnr)
|
# function(bufnr)
|
||||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
# if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||||
return
|
# return
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
if not slow_format_filetypes[vim.bo[bufnr].filetype] then
|
# if not slow_format_filetypes[vim.bo[bufnr].filetype] then
|
||||||
return
|
# return
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
return { lsp_fallback = true }
|
# return { lsp_fallback = true }
|
||||||
end
|
# end
|
||||||
'';
|
# '';
|
||||||
log_level = "warn";
|
log_level = "warn";
|
||||||
notify_on_error = true;
|
notify_on_error = true;
|
||||||
notify_no_formatters = false;
|
notify_no_formatters = false;
|
||||||
|
|||||||
14
flake.lock
generated
14
flake.lock
generated
@@ -87,11 +87,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767047869,
|
"lastModified": 1766473571,
|
||||||
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
|
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
|
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -118,15 +118,15 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1767047869,
|
"lastModified": 1766473571,
|
||||||
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
|
"narHash": "sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv+n5GX6Qto=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
|
"rev": "76701a179d3a98b07653e2b0409847499b2a07d3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-25.11",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
|
|||||||
Reference in New Issue
Block a user