Added Overlays

This commit is contained in:
2026-05-22 22:12:32 +02:00
parent 2a28574058
commit 42868908a6
7 changed files with 223 additions and 19 deletions
+5
View File
@@ -6,13 +6,18 @@
buildGoModule rec {
pname = "gs1200-exporter";
version = "2.11.12";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "robinelfrink";
repo = "gs1200-exporter";
rev = "v${version}";
hash = "sha256-8s2VgaqYXp9PN2oNU/sWpjQjDPSWolbWEVSZcx9Lh3M=";
};
vendorHash = "sha256-204bFaywOolKVNoeH/w72Ba1PYAVgQawEmlaEXgRaRY=";
meta = {
description = "Prometheus exporter for Zyxel GS1200 switches";
homepage = "https://github.com/robinelfrink/gs1200-exporter";
+4 -3
View File
@@ -1,5 +1,6 @@
{
pkgs,
vaultwarden,
rustPlatform,
fetchFromGitHub,
...
}:
@@ -11,10 +12,10 @@ let
hash = "sha256-tHacn9RtoByWpqnWX2/gWwODDSeXJa4mk4MfxHiiJ8A=";
};
in
pkgs.vaultwarden.overrideAttrs (old: {
vaultwarden.overrideAttrs (old: {
pname = "oidcwarden";
inherit src;
cargoDeps = pkgs.rustPlatform.importCargoLock {
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src}/Cargo.lock";
};
postInstall = (old.postInstall or "") + ''
+1 -1
View File
@@ -1,4 +1,4 @@
final: prev: {
gs1200-exporter = final.callPackage ./gs1200-exporter.nix { };
oidcwarden = final.callPackage ./oidcwarden.nix { };
oidcwarden = final.callPackage ./oidcwarden.nix { inherit (prev) vaultwarden; };
}