forked from zainab-ali/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
188 changed files
with
1,413 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11511,6 +11511,12 @@ | |
githubId = 3737; | ||
name = "Peter Jones"; | ||
}; | ||
phip1611 = { | ||
email = "[email protected]"; | ||
github = "phip1611"; | ||
githubId = 5737016; | ||
name = "Philipp Schuster"; | ||
}; | ||
pkharvey = { | ||
email = "[email protected]"; | ||
github = "pkharvey"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ let | |
"rspamd" | ||
"rtl_433" | ||
"script" | ||
"shelly" | ||
"snmp" | ||
"smartctl" | ||
"smokeping" | ||
|
27 changes: 27 additions & 0 deletions
27
nixos/modules/services/monitoring/prometheus/exporters/shelly.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ config, lib, pkgs, options }: | ||
|
||
with lib; | ||
|
||
let | ||
cfg = config.services.prometheus.exporters.shelly; | ||
in | ||
{ | ||
port = 9784; | ||
extraOpts = { | ||
metrics-file = mkOption { | ||
type = types.path; | ||
description = lib.mdDoc '' | ||
Path to the JSON file with the metric definitions | ||
''; | ||
}; | ||
}; | ||
serviceOpts = { | ||
serviceConfig = { | ||
ExecStart = '' | ||
${pkgs.prometheus-shelly-exporter}/bin/shelly_exporter \ | ||
-metrics-file ${cfg.metrics-file} \ | ||
-listen-address ${cfg.listenAddress}:${toString cfg.port} | ||
''; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, python3 | ||
, ffmpeg | ||
}: | ||
|
||
python3.pkgs.buildPythonApplication rec { | ||
pname = "pianotrans"; | ||
version = "1.0"; | ||
format = "setuptools"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "azuwis"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
hash = "sha256-6Otup1Yat1dBZdSoR4lDfpytUQ2RbDXC6ieo835Nw+U="; | ||
}; | ||
|
||
propagatedBuildInputs = with python3.pkgs; [ | ||
piano-transcription-inference | ||
torch | ||
tkinter | ||
]; | ||
|
||
# Project has no tests | ||
doCheck = false; | ||
|
||
makeWrapperArgs = [ | ||
''--prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"'' | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Simple GUI for ByteDance's Piano Transcription with Pedals"; | ||
homepage = "https://github.com/azuwis/pianotrans"; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ azuwis ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.