diff --git a/packages/README.md b/packages/README.md index f0e80a08..9242fabf 100644 --- a/packages/README.md +++ b/packages/README.md @@ -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 | diff --git a/packages/default.nix b/packages/default.nix index bbbeae7d..dbbf509a 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -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; }; diff --git a/packages/forgejo-guardian/default.nix b/packages/forgejo-guardian/default.nix new file mode 100644 index 00000000..89d7844d --- /dev/null +++ b/packages/forgejo-guardian/default.nix @@ -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. + ''; + }; + } diff --git a/scopedPackages/README.md b/scopedPackages/README.md index 815301a1..59ed2973 100644 --- a/scopedPackages/README.md +++ b/scopedPackages/README.md @@ -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 diff --git a/scopedPackages/lovelace-components/material-you-utilities/default.nix b/scopedPackages/lovelace-components/material-you-utilities/default.nix index 0be28096..b665e3ee 100644 --- a/scopedPackages/lovelace-components/material-you-utilities/default.nix +++ b/scopedPackages/lovelace-components/material-you-utilities/default.nix @@ -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. + ''; + }; }