Skip to content

Instantly share code, notes, and snippets.

View TimothyLoyer's full-sized avatar
👨‍🚀
my brain is in the stars

Tim Loyer TimothyLoyer

👨‍🚀
my brain is in the stars
View GitHub Profile
@heywoodlh
heywoodlh / configuration.nix
Created September 17, 2024 17:42
Don't use fprint on NixOS with lid closed (Dell XPS 13 9310)
{ config, pkgs, ... }:
{
# Fingerprint
services.fprintd = {
enable = true;
package = pkgs.fprintd-tod;
tod.enable = true;
tod.driver = pkgs.libfprint-2-tod1-goodix;
};
@kxxt
kxxt / README.md
Last active February 25, 2026 14:43
(Nix) Protect your Forgejo instance against AI scrapers with iocaine

Protect your Forgejo instance against AI scrapers with iocaine

Recently AI scrapers started endlessly crawling my forgejo instance and causes a persistent CPU usage above 80%. So I decided to feed them with iocaine. The config is shared to benefit the community

In your flake.nix:

Add iocaine to inputs (The current version in nixpkgs is too old):