feat: add forgejo-guardian package

This commit is contained in:
matt1432 2025-04-20 19:49:35 -04:00
parent eeec1e7c86
commit 9d31fc6f2f
5 changed files with 46 additions and 0 deletions
packages
scopedPackages
README.md
lovelace-components/material-you-utilities

View file

@ -7,6 +7,7 @@ This directory contains every derivations for packages exposed by this flake.
| Name | Description | Homepage |
| ---- | ----------- | -------- |
| `coloryou` | Get Material You colors from an image. | https://git.nelim.org/matt1432/nixos-configs/src/branch/master/packages/coloryou |
| `forgejo-guardian` | `forgejo-guardian` is a simple guardian for your Forgejo instance, it will ban users based on certain regular expressions (regex) and alert the admins about them. | https://git.4rs.nl/awiteb/forgejo-guardian |
| `gpu-screen-recorder` | Screen recorder that has minimal impact on system performance by recording a window using the GPU only. | https://git.dec05eba.com/gpu-screen-recorder/about |
| `gsr-kms-server` | Small program giving safe KMS access to gpu-screen-recorder when recording a monitor. This is the only part of gpu-screen-recorder that could require root permissions. | https://git.dec05eba.com/gpu-screen-recorder/about |
| `homepage` | Highly customisable dashboard with Docker and service API integrations. | https://gethomepage.dev |

View file

@ -6,6 +6,8 @@
selfPackages = {
coloryou = final.python3Packages.callPackage ./coloryou {};
forgejo-guardian = final.callPackage ./forgejo-guardian {};
gpu-screen-recorder = final.callPackage ./gpu-screen-recorder/gpu-screen-recorder.nix {
inherit (inputs) gpu-screen-recorder-src;
};

View file

@ -0,0 +1,33 @@
{
# nix build inputs
lib,
fetchFromGitHub,
rustPlatform,
...
}: let
inherit (builtins) fromTOML readFile;
in
rustPlatform.buildRustPackage rec {
pname = "forgejo-guardian";
version = (fromTOML (readFile "${src}/Cargo.toml")).package.version;
src = fetchFromGitHub {
owner = "TheAwiteb";
repo = pname;
rev = "d7c6748b9e45dfa30a5aa076a2c0d0e8bfceea6f";
sha256 = "sha256-i5vSO4SsPUaFJJHuKqG3IdRTTtYm2tUnvNL4+VLn34g=";
};
cargoLock.lockFile = "${src}/Cargo.lock";
meta = {
mainProgram = pname;
license = with lib.licenses; [agpl3Only];
homepage = "https://git.4rs.nl/awiteb/forgejo-guardian";
description = ''
`forgejo-guardian` is a simple guardian for your Forgejo instance,
it will ban users based on certain regular expressions (regex) and
alert the admins about them.
'';
};
}

View file

@ -61,6 +61,7 @@ Lovelace components I use for Home-Assistant that aren't in nixpkgs.
| `big-slider-card` | A card with a big slider for light entities in Home Assistant. | https://github.com/nicufarmache/lovelace-big-slider-card |
| `custom-sidebar` | Custom HACS plugin that allows you to personalise the Home Assistant's sidebar per user or device basis. | https://github.com/elchininet/custom-sidebar |
| `material-rounded-theme` | Material Design 3 Colors and Components in Home Assistant. | https://github.com/Nerwyn/material-rounded-theme |
| `material-you-utilities` | Material You color theme generation and Home Assistant component modification. | https://github.com/Nerwyn/ha-material-you-utilities |
### mpvScripts

View file

@ -1,4 +1,5 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
...
@ -27,4 +28,12 @@ in
'';
npmDepsHash = "sha256-5cc610/BhX19k2iREYVoE3c43yDmRJsE0Nvrq/gAVjY=";
meta = {
license = lib.licenses.asl20;
homepage = "https://github.com/Nerwyn/ha-material-you-utilities";
description = ''
Material You color theme generation and Home Assistant component modification.
'';
};
}