System tweaks, gitea CI, boot limit
CI / lint (push) Failing after 1m52s
CI / eval (push) Failing after 2m38s

- nix: keep-outputs + keep-derivations (preserve devshells across GC)
- zramSwap + fstrim
- systemd-boot configurationLimit = 20
- expand .gitignore (editor/AI/stray dotfiles); track statix.toml
- gitea Actions CI: blocking flake-check eval + informational statix/deadnix/nixfmt

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-06-27 18:52:20 +01:00
parent 39e6276c7d
commit 817c2f4f5e
6 changed files with 79 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# Gitea Actions CI for the nix config.
#
# Requirements on the act_runner:
# - a runner with the `ubuntu-latest` label (or change `runs-on` below)
# - the runner must be allowed to fetch actions from github.com
# (act_runner default: DEFAULT_ACTIONS_URL = https://github.com)
#
# Design: `eval` is blocking (it's the real safety net — the whole module
# system must evaluate). `lint` is informational (continue-on-error) because
# the existing statix/deadnix/format findings are intentionally tolerated.
# Flip `continue-on-error` to false once the config is clean to make it gating.
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: Evaluate all flake outputs (no build)
run: nix flake check --no-build
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- name: nixfmt (format check)
run: |
fd_nix=$(find . -name '*.nix')
nix run nixpkgs#nixfmt -- --check $fd_nix
- name: statix
run: nix run nixpkgs#statix -- check
- name: deadnix
run: nix run nixpkgs#deadnix -- --fail