Merge master into haskell-updates
This commit is contained in:
+1
-5
@@ -148,10 +148,6 @@ nixos/modules/installer/tools/nix-fallback-paths.nix @raitobezarius @ma27
|
|||||||
/pkgs/applications/science/math/R @jbedo
|
/pkgs/applications/science/math/R @jbedo
|
||||||
/pkgs/development/r-modules @jbedo
|
/pkgs/development/r-modules @jbedo
|
||||||
|
|
||||||
# Ruby
|
|
||||||
/pkgs/development/interpreters/ruby @marsam
|
|
||||||
/pkgs/development/ruby-modules @marsam
|
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
/pkgs/development/compilers/rust @Mic92 @zowoq @winterqt @figsoda
|
/pkgs/development/compilers/rust @Mic92 @zowoq @winterqt @figsoda
|
||||||
/pkgs/build-support/rust @zowoq @winterqt @figsoda
|
/pkgs/build-support/rust @zowoq @winterqt @figsoda
|
||||||
@@ -198,7 +194,7 @@ pkgs/development/python-modules/buildcatrust/ @ajs124 @lukegb @mweinelt
|
|||||||
/maintainers/scripts/kde @K900 @NickCao @SuperSandro2000 @ttuegel
|
/maintainers/scripts/kde @K900 @NickCao @SuperSandro2000 @ttuegel
|
||||||
|
|
||||||
# PostgreSQL and related stuff
|
# PostgreSQL and related stuff
|
||||||
/pkgs/servers/sql/postgresql @thoughtpolice @marsam
|
/pkgs/servers/sql/postgresql @thoughtpolice
|
||||||
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
|
/nixos/modules/services/databases/postgresql.xml @thoughtpolice
|
||||||
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
|
/nixos/modules/services/databases/postgresql.nix @thoughtpolice
|
||||||
/nixos/tests/postgresql.nix @thoughtpolice
|
/nixos/tests/postgresql.nix @thoughtpolice
|
||||||
|
|||||||
@@ -235,6 +235,11 @@ rec {
|
|||||||
libc = "newlib";
|
libc = "newlib";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
microblaze-embedded = {
|
||||||
|
config = "microblazeel-none-elf";
|
||||||
|
libc = "newlib";
|
||||||
|
};
|
||||||
|
|
||||||
#
|
#
|
||||||
# Redox
|
# Redox
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1848,6 +1848,12 @@
|
|||||||
githubId = 7745457;
|
githubId = 7745457;
|
||||||
name = "Astavie";
|
name = "Astavie";
|
||||||
};
|
};
|
||||||
|
astindev = {
|
||||||
|
email = "astindev@pm.me";
|
||||||
|
github = "astindev";
|
||||||
|
githubId = 52360869;
|
||||||
|
name = "Astin";
|
||||||
|
};
|
||||||
astro = {
|
astro = {
|
||||||
email = "astro@spaceboyz.net";
|
email = "astro@spaceboyz.net";
|
||||||
github = "astro";
|
github = "astro";
|
||||||
@@ -12388,11 +12394,6 @@
|
|||||||
githubId = 1709273;
|
githubId = 1709273;
|
||||||
name = "Robin Hack";
|
name = "Robin Hack";
|
||||||
};
|
};
|
||||||
marsam = {
|
|
||||||
github = "marsam";
|
|
||||||
githubId = 65531;
|
|
||||||
name = "Mario Rodas";
|
|
||||||
};
|
|
||||||
marsupialgutz = {
|
marsupialgutz = {
|
||||||
email = "mars@possums.xyz";
|
email = "mars@possums.xyz";
|
||||||
github = "pupbrained";
|
github = "pupbrained";
|
||||||
@@ -17098,6 +17099,12 @@
|
|||||||
githubId = 37246692;
|
githubId = 37246692;
|
||||||
name = "Riley Inman";
|
name = "Riley Inman";
|
||||||
};
|
};
|
||||||
|
rinx = {
|
||||||
|
email = "rintaro.okamura@gmail.com";
|
||||||
|
github = "rinx";
|
||||||
|
githubId = 1588935;
|
||||||
|
name = "Rintaro Okamura";
|
||||||
|
};
|
||||||
riotbib = {
|
riotbib = {
|
||||||
email = "lennart@cope.cool";
|
email = "lennart@cope.cool";
|
||||||
github = "riotbib";
|
github = "riotbib";
|
||||||
@@ -21942,7 +21949,8 @@
|
|||||||
};
|
};
|
||||||
xgwq = {
|
xgwq = {
|
||||||
name = "XGWQ";
|
name = "XGWQ";
|
||||||
email = "nixos@xnee.de";
|
email = "nixos.xgwq@xnee.net";
|
||||||
|
keys = [{ fingerprint = "6489 9EF2 A256 5C04 7426 686C 8337 A748 74EB E129"; }];
|
||||||
matrix = "@xgwq:nerdberg.de";
|
matrix = "@xgwq:nerdberg.de";
|
||||||
github = "peterablehmann";
|
github = "peterablehmann";
|
||||||
githubId = 36541313;
|
githubId = 36541313;
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ argparse,,,,,,
|
|||||||
basexx,,,,,,
|
basexx,,,,,,
|
||||||
binaryheap,,,,,,vcunat
|
binaryheap,,,,,,vcunat
|
||||||
busted,,,,,,
|
busted,,,,,,
|
||||||
cassowary,,,,,,marsam alerque
|
cassowary,,,,,,alerque
|
||||||
cldr,,,,,,alerque
|
cldr,,,,,,alerque
|
||||||
compat53,,,,,,vcunat
|
compat53,,,,,,vcunat
|
||||||
commons.nvim,,,,,,mrcjkb
|
commons.nvim,,,,,,mrcjkb
|
||||||
cosmo,,,,,,marsam
|
cosmo,,,,,,
|
||||||
coxpcall,,,,1.17.0-1,,
|
coxpcall,,,,1.17.0-1,,
|
||||||
cqueues,,,,,,vcunat
|
cqueues,,,,,,vcunat
|
||||||
cyan,,,,,,
|
cyan,,,,,,
|
||||||
|
|||||||
|
@@ -46,7 +46,6 @@ with lib.maintainers; {
|
|||||||
bazel = {
|
bazel = {
|
||||||
members = [
|
members = [
|
||||||
mboes
|
mboes
|
||||||
marsam
|
|
||||||
uri-canva
|
uri-canva
|
||||||
cbley
|
cbley
|
||||||
olebedev
|
olebedev
|
||||||
@@ -736,7 +735,6 @@ with lib.maintainers; {
|
|||||||
node = {
|
node = {
|
||||||
members = [
|
members = [
|
||||||
lilyinstarlight
|
lilyinstarlight
|
||||||
marsam
|
|
||||||
winter
|
winter
|
||||||
];
|
];
|
||||||
scope = "Maintain Node.js runtimes and build tooling.";
|
scope = "Maintain Node.js runtimes and build tooling.";
|
||||||
@@ -906,7 +904,6 @@ with lib.maintainers; {
|
|||||||
|
|
||||||
ruby = {
|
ruby = {
|
||||||
members = [
|
members = [
|
||||||
marsam
|
|
||||||
];
|
];
|
||||||
scope = "Maintain the Ruby interpreter and related packages.";
|
scope = "Maintain the Ruby interpreter and related packages.";
|
||||||
shortName = "Ruby";
|
shortName = "Ruby";
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
@@ -12,9 +17,7 @@ in
|
|||||||
Whether to install Singularity/Apptainer with system-level overriding such as SUID support.
|
Whether to install Singularity/Apptainer with system-level overriding such as SUID support.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
package = mkPackageOption pkgs "singularity" {
|
package = mkPackageOption pkgs "singularity" { example = "apptainer"; };
|
||||||
example = "apptainer";
|
|
||||||
};
|
|
||||||
packageOverriden = mkOption {
|
packageOverriden = mkOption {
|
||||||
type = types.nullOr types.package;
|
type = types.nullOr types.package;
|
||||||
default = null;
|
default = null;
|
||||||
@@ -75,17 +78,19 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.singularity.packageOverriden = (cfg.package.override (
|
programs.singularity.packageOverriden = (
|
||||||
optionalAttrs cfg.enableExternalLocalStateDir {
|
cfg.package.override (
|
||||||
externalLocalStateDir = "/var/lib";
|
optionalAttrs cfg.enableExternalLocalStateDir { externalLocalStateDir = "/var/lib"; }
|
||||||
} // optionalAttrs cfg.enableFakeroot {
|
// optionalAttrs cfg.enableFakeroot {
|
||||||
newuidmapPath = "/run/wrappers/bin/newuidmap";
|
newuidmapPath = "/run/wrappers/bin/newuidmap";
|
||||||
newgidmapPath = "/run/wrappers/bin/newgidmap";
|
newgidmapPath = "/run/wrappers/bin/newgidmap";
|
||||||
} // optionalAttrs cfg.enableSuid {
|
}
|
||||||
enableSuid = true;
|
// optionalAttrs cfg.enableSuid {
|
||||||
starterSuidPath = "/run/wrappers/bin/${cfg.package.projectName}-suid";
|
enableSuid = true;
|
||||||
}
|
starterSuidPath = "/run/wrappers/bin/${cfg.package.projectName}-suid";
|
||||||
));
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
environment.systemPackages = [ cfg.packageOverriden ];
|
environment.systemPackages = [ cfg.packageOverriden ];
|
||||||
security.wrappers."${cfg.packageOverriden.projectName}-suid" = mkIf cfg.enableSuid {
|
security.wrappers."${cfg.packageOverriden.projectName}-suid" = mkIf cfg.enableSuid {
|
||||||
setuid = true;
|
setuid = true;
|
||||||
@@ -97,5 +102,4 @@ in
|
|||||||
"d /var/lib/${cfg.packageOverriden.projectName}/mnt/session 0770 root root -"
|
"d /var/lib/${cfg.packageOverriden.projectName}/mnt/session 0770 root root -"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,12 @@
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
|
virtualisation.docker.daemon.settings = lib.mkIf
|
||||||
|
(config.hardware.nvidia-container-toolkit.enable &&
|
||||||
|
(lib.versionAtLeast config.virtualisation.docker.package.version "25")) {
|
||||||
|
features.cdi = true;
|
||||||
|
};
|
||||||
|
|
||||||
hardware.nvidia-container-toolkit.mounts = let
|
hardware.nvidia-container-toolkit.mounts = let
|
||||||
nvidia-driver = config.hardware.nvidia.package;
|
nvidia-driver = config.hardware.nvidia.package;
|
||||||
in (lib.mkMerge [
|
in (lib.mkMerge [
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ in
|
|||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
Generates the conduit.toml configuration file. Refer to
|
Generates the conduit.toml configuration file. Refer to
|
||||||
<https://gitlab.com/famedly/conduit/-/blob/master/conduit-example.toml>
|
<https://docs.conduit.rs/configuration.html>
|
||||||
for details on supported values.
|
for details on supported values.
|
||||||
Note that database_path can not be edited because the service's reliance on systemd StateDir.
|
Note that database_path can not be edited because the service's reliance on systemd StateDir.
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.apcupsd;
|
cfg = config.services.prometheus.exporters.apcupsd;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9162;
|
port = 9162;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.artifactory;
|
cfg = config.services.prometheus.exporters.artifactory;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9531;
|
port = 9531;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.bind;
|
cfg = config.services.prometheus.exporters.bind;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9119;
|
port = 9119;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.bird;
|
cfg = config.services.prometheus.exporters.bird;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
singleton
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9324;
|
port = 9324;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.bitcoin;
|
cfg = config.services.prometheus.exporters.bitcoin;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9332;
|
port = 9332;
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
logPrefix = "services.prometheus.exporter.blackbox";
|
logPrefix = "services.prometheus.exporter.blackbox";
|
||||||
cfg = config.services.prometheus.exporters.blackbox;
|
cfg = config.services.prometheus.exporters.blackbox;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
|
|
||||||
# This ensures that we can deal with string paths, path types and
|
# This ensures that we can deal with string paths, path types and
|
||||||
# store-path strings with context.
|
# store-path strings with context.
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.buildkite-agent;
|
cfg = config.services.prometheus.exporters.buildkite-agent;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
optionalString
|
||||||
|
literalExpression
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9876;
|
port = 9876;
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.collectd;
|
cfg = config.services.prometheus.exporters.collectd;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
mkEnableOption
|
||||||
|
types
|
||||||
|
optionalString
|
||||||
|
concatStringsSep
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9103;
|
port = 9103;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.dmarc;
|
cfg = config.services.prometheus.exporters.dmarc;
|
||||||
|
inherit (lib) mkOption types optionalString;
|
||||||
|
|
||||||
json = builtins.toJSON {
|
json = builtins.toJSON {
|
||||||
inherit (cfg) folders port;
|
inherit (cfg) folders port;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.dnsmasq;
|
cfg = config.services.prometheus.exporters.dnsmasq;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9153;
|
port = 9153;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.domain;
|
cfg = config.services.prometheus.exporters.domain;
|
||||||
|
inherit (lib) concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9222;
|
port = 9222;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.dovecot;
|
cfg = config.services.prometheus.exporters.dovecot;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9166;
|
port = 9166;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.flow;
|
cfg = config.services.prometheus.exporters.flow;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
concatStringsSep
|
||||||
|
optionalString
|
||||||
|
;
|
||||||
in {
|
in {
|
||||||
port = 9590;
|
port = 9590;
|
||||||
extraOpts = {
|
extraOpts = {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.fritzbox;
|
cfg = config.services.prometheus.exporters.fritzbox;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9133;
|
port = 9133;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.idrac;
|
cfg = config.services.prometheus.exporters.idrac;
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
|
||||||
configFile = if cfg.configurationPath != null
|
configFile = if cfg.configurationPath != null
|
||||||
then cfg.configurationPath
|
then cfg.configurationPath
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.imap-mailstat;
|
cfg = config.services.prometheus.exporters.imap-mailstat;
|
||||||
valueToString = value:
|
valueToString = value:
|
||||||
@@ -13,6 +11,15 @@ let
|
|||||||
else "XXX ${toString value}"
|
else "XXX ${toString value}"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStrings
|
||||||
|
concatStringsSep
|
||||||
|
attrValues
|
||||||
|
mapAttrs
|
||||||
|
optionalString
|
||||||
|
;
|
||||||
createConfigFile = accounts:
|
createConfigFile = accounts:
|
||||||
# unfortunately on toTOML yet
|
# unfortunately on toTOML yet
|
||||||
# https://github.com/NixOS/nix/issues/3929
|
# https://github.com/NixOS/nix/issues/3929
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.influxdb;
|
cfg = config.services.prometheus.exporters.influxdb;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9122;
|
port = 9122;
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
logPrefix = "services.prometheus.exporter.ipmi";
|
logPrefix = "services.prometheus.exporter.ipmi";
|
||||||
cfg = config.services.prometheus.exporters.ipmi;
|
cfg = config.services.prometheus.exporters.ipmi;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
optionals
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in {
|
in {
|
||||||
port = 9290;
|
port = 9290;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.jitsi;
|
cfg = config.services.prometheus.exporters.jitsi;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9700;
|
port = 9700;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.json;
|
cfg = config.services.prometheus.exporters.json;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
mkRemovedOptionModule
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 7979;
|
port = 7979;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.junos-czerwonk;
|
cfg = config.services.prometheus.exporters.junos-czerwonk;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
mkIf
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
|
|
||||||
configFile = if cfg.configuration != null then configurationFile else (escapeShellArg cfg.configurationFile);
|
configFile = if cfg.configuration != null then configurationFile else (escapeShellArg cfg.configurationFile);
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,14 @@
|
|||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.kea;
|
cfg = config.services.prometheus.exporters.kea;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkRenamedOptionModule
|
||||||
|
literalExpression
|
||||||
|
;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
(mkRenamedOptionModule [ "controlSocketPaths" ] [ "targets" ])
|
(mkRenamedOptionModule [ "controlSocketPaths" ] [ "targets" ])
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.keylight;
|
cfg = config.services.prometheus.exporters.keylight;
|
||||||
|
inherit (lib) concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9288;
|
port = 9288;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.knot;
|
cfg = config.services.prometheus.exporters.knot;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in {
|
in {
|
||||||
port = 9433;
|
port = 9433;
|
||||||
extraOpts = {
|
extraOpts = {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.lnd;
|
cfg = config.services.prometheus.exporters.lnd;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9092;
|
port = 9092;
|
||||||
|
|||||||
@@ -1,9 +1,19 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.mail;
|
cfg = config.services.prometheus.exporters.mail;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mapAttrs'
|
||||||
|
nameValuePair
|
||||||
|
toLower
|
||||||
|
filterAttrs
|
||||||
|
escapeShellArg
|
||||||
|
literalExpression
|
||||||
|
mkIf
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
|
|
||||||
configFile = if cfg.configuration != null then configurationFile else (escapeShellArg cfg.configFile);
|
configFile = if cfg.configuration != null then configurationFile else (escapeShellArg cfg.configFile);
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.mikrotik;
|
cfg = config.services.prometheus.exporters.mikrotik;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
concatStringsSep
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9436;
|
port = 9436;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.minio;
|
cfg = config.services.prometheus.exporters.minio;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
optionalString
|
||||||
|
concatStringsSep
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9290;
|
port = 9290;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.modemmanager;
|
cfg = config.services.prometheus.exporters.modemmanager;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9539;
|
port = 9539;
|
||||||
|
|||||||
@@ -1,9 +1,17 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.mongodb;
|
cfg = config.services.prometheus.exporters.mongodb;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
optionalString
|
||||||
|
getExe
|
||||||
|
length
|
||||||
|
concatStringsSep
|
||||||
|
concatMapStringsSep
|
||||||
|
escapeShellArgs
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9216;
|
port = 9216;
|
||||||
|
|||||||
@@ -1,11 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
cfg = config.services.prometheus.exporters.nats;
|
cfg = config.services.prometheus.exporters.nats;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 7777;
|
port = 7777;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.nextcloud;
|
cfg = config.services.prometheus.exporters.nextcloud;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9205;
|
port = 9205;
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.nginx;
|
cfg = config.services.prometheus.exporters.nginx;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkMerge
|
||||||
|
mkRemovedOptionModule
|
||||||
|
mkRenamedOptionModule
|
||||||
|
mkIf
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9113;
|
port = 9113;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.nginxlog;
|
cfg = config.services.prometheus.exporters.nginxlog;
|
||||||
|
inherit (lib) mkOption types;
|
||||||
in {
|
in {
|
||||||
port = 9117;
|
port = 9117;
|
||||||
extraOpts = {
|
extraOpts = {
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.node;
|
cfg = config.services.prometheus.exporters.node;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
concatMapStringsSep
|
||||||
|
any
|
||||||
|
optionals
|
||||||
|
;
|
||||||
collectorIsEnabled = final: any (collector: (final == collector)) cfg.enabledCollectors;
|
collectorIsEnabled = final: any (collector: (final == collector)) cfg.enabledCollectors;
|
||||||
collectorIsDisabled = final: any (collector: (final == collector)) cfg.disabledCollectors;
|
collectorIsDisabled = final: any (collector: (final == collector)) cfg.disabledCollectors;
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.nut;
|
cfg = config.services.prometheus.exporters.nut;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
optionalString
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9199;
|
port = 9199;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.openldap;
|
cfg = config.services.prometheus.exporters.openldap;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in {
|
in {
|
||||||
port = 9330;
|
port = 9330;
|
||||||
extraOpts = {
|
extraOpts = {
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.pgbouncer;
|
cfg = config.services.prometheus.exporters.pgbouncer;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
optionals
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9127;
|
port = 9127;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.pihole;
|
cfg = config.services.prometheus.exporters.pihole;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkRemovedOptionModule
|
||||||
|
optionalString
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.ping;
|
cfg = config.services.prometheus.exporters.ping;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
|
|
||||||
settingsFormat = pkgs.formats.yaml {};
|
settingsFormat = pkgs.formats.yaml {};
|
||||||
configFile = settingsFormat.generate "config.yml" cfg.settings;
|
configFile = settingsFormat.generate "config.yml" cfg.settings;
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.postfix;
|
cfg = config.services.prometheus.exporters.postfix;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkIf
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
optional
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9154;
|
port = 9154;
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.postgres;
|
cfg = config.services.prometheus.exporters.postgres;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkIf
|
||||||
|
mkForce
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9187;
|
port = 9187;
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.process;
|
cfg = config.services.prometheus.exporters.process;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
configFile = pkgs.writeText "process-exporter.yaml" (builtins.toJSON cfg.settings);
|
configFile = pkgs.writeText "process-exporter.yaml" (builtins.toJSON cfg.settings);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.pve;
|
cfg = config.services.prometheus.exporters.pve;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkPackageOption
|
||||||
|
optionalString
|
||||||
|
optionalAttrs
|
||||||
|
;
|
||||||
|
|
||||||
# pve exporter requires a config file so create an empty one if configFile is not provided
|
# pve exporter requires a config file so create an empty one if configFile is not provided
|
||||||
emptyConfigFile = pkgs.writeTextFile {
|
emptyConfigFile = pkgs.writeTextFile {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.py-air-control;
|
cfg = config.services.prometheus.exporters.py-air-control;
|
||||||
|
inherit (lib) mkOption types;
|
||||||
|
|
||||||
workingDir = "/var/lib/${cfg.stateDir}";
|
workingDir = "/var/lib/${cfg.stateDir}";
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.redis;
|
cfg = config.services.prometheus.exporters.redis;
|
||||||
|
inherit (lib) concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9121;
|
port = 9121;
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.restic;
|
cfg = config.services.prometheus.exporters.restic;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
mkIf
|
||||||
|
mapAttrs'
|
||||||
|
splitString
|
||||||
|
toUpper
|
||||||
|
optionalAttrs
|
||||||
|
nameValuePair
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9753;
|
port = 9753;
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.rspamd;
|
cfg = config.services.prometheus.exporters.rspamd;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
replaceStrings
|
||||||
|
mkRemovedOptionModule
|
||||||
|
recursiveUpdate
|
||||||
|
concatStringsSep
|
||||||
|
literalExpression
|
||||||
|
;
|
||||||
|
|
||||||
mkFile = conf:
|
mkFile = conf:
|
||||||
pkgs.writeText "rspamd-exporter-config.yml" (builtins.toJSON conf);
|
pkgs.writeText "rspamd-exporter-config.yml" (builtins.toJSON conf);
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.script;
|
cfg = config.services.prometheus.exporters.script;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
configFile = pkgs.writeText "script-exporter.yaml" (builtins.toJSON cfg.settings);
|
configFile = pkgs.writeText "script-exporter.yaml" (builtins.toJSON cfg.settings);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.shelly;
|
cfg = config.services.prometheus.exporters.shelly;
|
||||||
|
inherit (lib) mkOption types;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9784;
|
port = 9784;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.smartctl;
|
cfg = config.services.prometheus.exporters.smartctl;
|
||||||
|
inherit (lib) mkOption types literalExpression;
|
||||||
args = lib.escapeShellArgs ([
|
args = lib.escapeShellArgs ([
|
||||||
"--web.listen-address=${cfg.listenAddress}:${toString cfg.port}"
|
"--web.listen-address=${cfg.listenAddress}:${toString cfg.port}"
|
||||||
"--smartctl.path=${pkgs.smartmontools}/bin/smartctl"
|
"--smartctl.path=${pkgs.smartmontools}/bin/smartctl"
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.smokeping;
|
cfg = config.services.prometheus.exporters.smokeping;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
goDuration = types.mkOptionType {
|
goDuration = types.mkOptionType {
|
||||||
name = "goDuration";
|
name = "goDuration";
|
||||||
description = "Go duration (https://golang.org/pkg/time/#ParseDuration)";
|
description = "Go duration (https://golang.org/pkg/time/#ParseDuration)";
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
logPrefix = "services.prometheus.exporters.snmp";
|
logPrefix = "services.prometheus.exporters.snmp";
|
||||||
cfg = config.services.prometheus.exporters.snmp;
|
cfg = config.services.prometheus.exporters.snmp;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
literalExpression
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
|
|
||||||
# This ensures that we can deal with string paths, path types and
|
# This ensures that we can deal with string paths, path types and
|
||||||
# store-path strings with context.
|
# store-path strings with context.
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.sql;
|
cfg = config.services.prometheus.exporters.sql;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mapAttrs
|
||||||
|
mapAttrsToList
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
cfgOptions = {
|
cfgOptions = {
|
||||||
options = with types; {
|
options = with types; {
|
||||||
jobs = mkOption {
|
jobs = mkOption {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.statsd;
|
cfg = config.services.prometheus.exporters.statsd;
|
||||||
|
inherit (lib) concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9102;
|
port = 9102;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.surfboard;
|
cfg = config.services.prometheus.exporters.surfboard;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9239;
|
port = 9239;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
with lib;
|
let
|
||||||
|
cfg = config.services.prometheus.exporters.systemd;
|
||||||
let cfg = config.services.prometheus.exporters.systemd;
|
inherit (lib) concatStringsSep;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
port = 9558;
|
port = 9558;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.tor;
|
cfg = config.services.prometheus.exporters.tor;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9130;
|
port = 9130;
|
||||||
|
|||||||
@@ -5,10 +5,17 @@
|
|||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.unbound;
|
cfg = config.services.prometheus.exporters.unbound;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkRemovedOptionModule
|
||||||
|
optionalAttrs
|
||||||
|
optionalString
|
||||||
|
mkMerge
|
||||||
|
mkIf
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.unifi;
|
cfg = config.services.prometheus.exporters.unifi;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
escapeShellArg
|
||||||
|
optionalString
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9130;
|
port = 9130;
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.unpoller;
|
cfg = config.services.prometheus.exporters.unpoller;
|
||||||
|
inherit (lib) mkEnableOption generators;
|
||||||
|
|
||||||
configFile = pkgs.writeText "prometheus-unpoller-exporter.json" (generators.toJSON {} {
|
configFile = pkgs.writeText "prometheus-unpoller-exporter.json" (generators.toJSON {} {
|
||||||
poller = { inherit (cfg.log) debug quiet; };
|
poller = { inherit (cfg.log) debug quiet; };
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.v2ray;
|
cfg = config.services.prometheus.exporters.v2ray;
|
||||||
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9299;
|
port = 9299;
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.varnish;
|
cfg = config.services.prometheus.exporters.varnish;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkDefault
|
||||||
|
optional
|
||||||
|
escapeShellArg
|
||||||
|
concatStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9131;
|
port = 9131;
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.wireguard;
|
cfg = config.services.prometheus.exporters.wireguard;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
mkRenamedOptionModule
|
||||||
|
mkEnableOption
|
||||||
|
optionalString
|
||||||
|
escapeShellArg
|
||||||
|
;
|
||||||
in {
|
in {
|
||||||
port = 9586;
|
port = 9586;
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ config, lib, pkgs, options, ... }:
|
{ config, lib, pkgs, options, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.prometheus.exporters.zfs;
|
cfg = config.services.prometheus.exporters.zfs;
|
||||||
|
inherit (lib)
|
||||||
|
mkOption
|
||||||
|
types
|
||||||
|
concatStringsSep
|
||||||
|
concatMapStringsSep
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
port = 9134;
|
port = 9134;
|
||||||
|
|||||||
@@ -817,11 +817,11 @@ in {
|
|||||||
base_url = mkOption {
|
base_url = mkOption {
|
||||||
type = types.nullOr types.nonEmptyStr;
|
type = types.nullOr types.nonEmptyStr;
|
||||||
default = if lib.versionOlder config.system.stateVersion "24.05"
|
default = if lib.versionOlder config.system.stateVersion "24.05"
|
||||||
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
|
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}"
|
||||||
else null;
|
else null;
|
||||||
defaultText = literalExpression ''
|
defaultText = literalExpression ''
|
||||||
if lib.versionOlder config.system.stateVersion "24.05"
|
if lib.versionOlder config.system.stateVersion "24.05"
|
||||||
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
|
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}"
|
||||||
else null;
|
else null;
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
|
|||||||
@@ -941,7 +941,6 @@ in {
|
|||||||
tiddlywiki = handleTest ./tiddlywiki.nix {};
|
tiddlywiki = handleTest ./tiddlywiki.nix {};
|
||||||
tigervnc = handleTest ./tigervnc.nix {};
|
tigervnc = handleTest ./tigervnc.nix {};
|
||||||
timescaledb = handleTest ./timescaledb.nix {};
|
timescaledb = handleTest ./timescaledb.nix {};
|
||||||
promscale = handleTest ./promscale.nix {};
|
|
||||||
timezone = handleTest ./timezone.nix {};
|
timezone = handleTest ./timezone.nix {};
|
||||||
tinc = handleTest ./tinc {};
|
tinc = handleTest ./tinc {};
|
||||||
tinydns = handleTest ./tinydns.nix {};
|
tinydns = handleTest ./tinydns.nix {};
|
||||||
|
|||||||
@@ -907,7 +907,7 @@ let
|
|||||||
attrs = {
|
attrs = {
|
||||||
objectClass = [ "olcDatabaseConfig" "olcMdbConfig" ];
|
objectClass = [ "olcDatabaseConfig" "olcMdbConfig" ];
|
||||||
olcDatabase = "{1}mdb";
|
olcDatabase = "{1}mdb";
|
||||||
olcDbDirectory = "/var/db/openldap";
|
olcDbDirectory = "/var/lib/openldap/db";
|
||||||
olcSuffix = "dc=example";
|
olcSuffix = "dc=example";
|
||||||
olcRootDN = {
|
olcRootDN = {
|
||||||
# cn=root,dc=example
|
# cn=root,dc=example
|
||||||
|
|||||||
@@ -1,60 +0,0 @@
|
|||||||
# mostly copied from ./timescaledb.nix which was copied from ./postgresql.nix
|
|
||||||
# as it seemed unapproriate to test additional extensions for postgresql there.
|
|
||||||
|
|
||||||
{ system ? builtins.currentSystem
|
|
||||||
, config ? { }
|
|
||||||
, pkgs ? import ../.. { inherit system config; }
|
|
||||||
}:
|
|
||||||
|
|
||||||
with import ../lib/testing-python.nix { inherit system pkgs; };
|
|
||||||
with pkgs.lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
postgresql-versions = import ../../pkgs/servers/sql/postgresql pkgs;
|
|
||||||
test-sql = pkgs.writeText "postgresql-test" ''
|
|
||||||
CREATE USER promscale SUPERUSER PASSWORD 'promscale';
|
|
||||||
CREATE DATABASE promscale OWNER promscale;
|
|
||||||
'';
|
|
||||||
|
|
||||||
make-postgresql-test = postgresql-name: postgresql-package: makeTest {
|
|
||||||
name = postgresql-name;
|
|
||||||
meta = with pkgs.lib.maintainers; {
|
|
||||||
maintainers = [ anpin ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nodes.machine = { config, pkgs, ... }:
|
|
||||||
{
|
|
||||||
services.postgresql = {
|
|
||||||
enable = true;
|
|
||||||
package = postgresql-package;
|
|
||||||
extraPlugins = ps: with ps; [
|
|
||||||
timescaledb
|
|
||||||
promscale_extension
|
|
||||||
];
|
|
||||||
settings = { shared_preload_libraries = "timescaledb, promscale"; };
|
|
||||||
};
|
|
||||||
environment.systemPackages = with pkgs; [ promscale ];
|
|
||||||
};
|
|
||||||
|
|
||||||
testScript = ''
|
|
||||||
machine.start()
|
|
||||||
machine.wait_for_unit("postgresql")
|
|
||||||
with subtest("Postgresql with extensions timescaledb and promscale is available just after unit start"):
|
|
||||||
print(machine.succeed("sudo -u postgres psql -f ${test-sql}"))
|
|
||||||
machine.succeed("sudo -u postgres psql promscale -c 'SHOW shared_preload_libraries;' | grep promscale")
|
|
||||||
machine.succeed(
|
|
||||||
"promscale --db.name promscale --db.password promscale --db.user promscale --db.ssl-mode allow --startup.install-extensions --startup.only"
|
|
||||||
)
|
|
||||||
machine.succeed("sudo -u postgres psql promscale -c 'SELECT ps_trace.get_trace_retention_period();' | grep '(1 row)'")
|
|
||||||
machine.shutdown()
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
#version 15 is not supported yet
|
|
||||||
applicablePostgresqlVersions = filterAttrs (_: value: versionAtLeast value.version "12" && !(versionAtLeast value.version "15")) postgresql-versions;
|
|
||||||
in
|
|
||||||
mapAttrs'
|
|
||||||
(name: package: {
|
|
||||||
inherit name;
|
|
||||||
value = make-postgresql-test name package;
|
|
||||||
})
|
|
||||||
applicablePostgresqlVersions
|
|
||||||
@@ -23,13 +23,13 @@ with lib.strings;
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
version = "2.70.3";
|
version = "2.72.14";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "grame-cncm";
|
owner = "grame-cncm";
|
||||||
repo = "faust";
|
repo = "faust";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-z6fW/T7wJZxugmvABlpvyMXvR4WkmC16INOKyyfKx8k=";
|
sha256 = "sha256-RdSXiOYwKsfyrfHEughCeSwa9VFM6/3pMg54yCMpzLU=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -63,14 +63,6 @@ let
|
|||||||
ncurses_static
|
ncurses_static
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-CsigFFun-API-declaration.patch";
|
|
||||||
url = "https://github.com/grame-cncm/faust/commit/10ce960e91a6237c7bff14a338e770757076ce9e.patch";
|
|
||||||
hash = "sha256-WMFLpLGTZpG7ni3lhI5VJHsmJViWZf4pAFuhYmFVRCE=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru = { inherit wrap wrapWithBuildEnv faust2ApplBase; };
|
passthru = { inherit wrap wrapWithBuildEnv faust2ApplBase; };
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://github.com/tsirysndr/music-player";
|
homepage = "https://github.com/tsirysndr/music-player";
|
||||||
changelog = "https://github.com/tsirysndr/music-player/releases/tag/v${version}";
|
changelog = "https://github.com/tsirysndr/music-player/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = [ ];
|
||||||
mainProgram = "music-player";
|
mainProgram = "music-player";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://github.com/hrkfdn/ncspot";
|
homepage = "https://github.com/hrkfdn/ncspot";
|
||||||
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
changelog = "https://github.com/hrkfdn/ncspot/releases/tag/v${version}";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ marsam liff ];
|
maintainers = with maintainers; [ liff ];
|
||||||
mainProgram = "ncspot";
|
mainProgram = "ncspot";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ rustPackages.rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://spotifyd.rs/";
|
homepage = "https://spotifyd.rs/";
|
||||||
changelog = "https://github.com/Spotifyd/spotifyd/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/Spotifyd/spotifyd/blob/${src.rev}/CHANGELOG.md";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ anderslundstedt Br1ght0ne marsam ];
|
maintainers = with maintainers; [ anderslundstedt Br1ght0ne ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
mainProgram = "spotifyd";
|
mainProgram = "spotifyd";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{ fetchFromGitHub
|
{ fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
, protobuf
|
, protobuf
|
||||||
, rocksdb
|
, rocksdb_8_3
|
||||||
, rust-jemalloc-sys-unprefixed
|
, rust-jemalloc-sys-unprefixed
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, rustc
|
, rustc
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
, Security
|
, Security
|
||||||
, SystemConfiguration
|
, SystemConfiguration
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
rocksdb = rocksdb_8_3;
|
||||||
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "polkadot";
|
pname = "polkadot";
|
||||||
version = "1.10.0";
|
version = "1.10.0";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
, openssl
|
, openssl
|
||||||
, libclang
|
, libclang
|
||||||
, libcxx
|
, libcxx
|
||||||
, rocksdb
|
, rocksdb_8_3
|
||||||
, rustfmt
|
, rustfmt
|
||||||
, perl
|
, perl
|
||||||
, hidapi
|
, hidapi
|
||||||
@@ -46,6 +46,7 @@ let
|
|||||||
pinData = lib.importJSON ./pin.json;
|
pinData = lib.importJSON ./pin.json;
|
||||||
version = pinData.version;
|
version = pinData.version;
|
||||||
hash = pinData.hash;
|
hash = pinData.hash;
|
||||||
|
rocksdb = rocksdb_8_3;
|
||||||
inherit (darwin.apple_sdk_11_0) Libsystem;
|
inherit (darwin.apple_sdk_11_0) Libsystem;
|
||||||
inherit (darwin.apple_sdk_11_0.frameworks) System IOKit AppKit Security;
|
inherit (darwin.apple_sdk_11_0.frameworks) System IOKit AppKit Security;
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
pname = "codux";
|
pname = "codux";
|
||||||
version = "15.23.1";
|
version = "15.25.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
|
url = "https://github.com/wixplosives/codux-versions/releases/download/${version}/Codux-${version}.x86_64.AppImage";
|
||||||
sha256 = "sha256-9ZzWsLEPEG+PDrDf9lU4ODGOD6/fvMbGBSo9BEQrkn4=";
|
sha256 = "sha256-9hO0n+ARAqwYWCbDAKpna1zS3pjHykB3+c6wunWrc6o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ let
|
|||||||
homepage = "https://github.com/zbelial/lspce";
|
homepage = "https://github.com/zbelial/lspce";
|
||||||
description = "LSP Client for Emacs implemented as a module using rust";
|
description = "LSP Client for Emacs implemented as a module using rust";
|
||||||
license = lib.licenses.gpl3Only;
|
license = lib.licenses.gpl3Only;
|
||||||
maintainers = [ lib.maintainers.marsam ];
|
maintainers = [ ];
|
||||||
inherit (emacs.meta) platforms;
|
inherit (emacs.meta) platforms;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
meta = {
|
meta = {
|
||||||
homepage = "https://git.sr.ht/~casouri/xapian-lite";
|
homepage = "https://git.sr.ht/~casouri/xapian-lite";
|
||||||
description = "A minimal Emacs dynamic module for Xapian";
|
description = "A minimal Emacs dynamic module for Xapian";
|
||||||
maintainers = [ lib.maintainers.marsam ];
|
maintainers = [ ];
|
||||||
license = lib.licenses.gpl3Plus;
|
license = lib.licenses.gpl3Plus;
|
||||||
inherit (emacs.meta) platforms;
|
inherit (emacs.meta) platforms;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -948,35 +948,30 @@ let
|
|||||||
sources = {
|
sources = {
|
||||||
"x86_64-linux" = {
|
"x86_64-linux" = {
|
||||||
arch = "linux-x64";
|
arch = "linux-x64";
|
||||||
sha256 = "1y5g8ay9sfz7r21fhwb2wr28yng7w3f2l265ljnfkz8yv8qzqpgk";
|
hash = "sha256-GQH+KKteWbCz18AlTWjLWrVpPRxumi+iDPS5n+5xy/0=";
|
||||||
};
|
};
|
||||||
"x86_64-darwin" = {
|
"x86_64-darwin" = {
|
||||||
arch = "darwin-x64";
|
arch = "darwin-x64";
|
||||||
sha256 = "14v9p5k9c9s9hfb1ymmkp66kmm9pvnvvljzrrs9wmajss5mlglf5";
|
hash = "sha256-xBwuAtvRdOgYkfxP0JaxhAQZx5AJWymDVQ50piTx608=";
|
||||||
};
|
};
|
||||||
"aarch64-linux" = {
|
"aarch64-linux" = {
|
||||||
arch = "linux-arm64";
|
arch = "linux-arm64";
|
||||||
sha256 = "1mngfy42crp8xs14s06rkyzv16ci12bq8y39miyy7wa3a343b0ii";
|
hash = "sha256-oLLKnNZ+E06PbUrhj5Y0HOdHhUs/fXd+3lZXX/P2C10=";
|
||||||
};
|
};
|
||||||
"aarch64-darwin" = {
|
"aarch64-darwin" = {
|
||||||
arch = "darwin-arm64";
|
arch = "darwin-arm64";
|
||||||
sha256 = "1gd1kr91s52kc8ldzy78cbn6gix1b8cvd6jh4sfrhq7k8yyn7g1l";
|
hash = "sha256-nWuyqOIELp8MrjzCFH3yu4pWm5KsNxmx3eacgStWKG0=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
name = "continue";
|
name = "continue";
|
||||||
publisher = "Continue";
|
publisher = "Continue";
|
||||||
version = "0.8.22";
|
version = "0.8.25";
|
||||||
}
|
}
|
||||||
// sources.${stdenv.system};
|
// sources.${stdenv.system};
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
buildInputs = [ stdenv.cc.cc.lib ];
|
buildInputs = [ stdenv.cc.cc.lib ];
|
||||||
postInstall = ''
|
|
||||||
cd "$out/$installPrefix"
|
|
||||||
substituteInPlace "out/extension.js" \
|
|
||||||
--replace-fail 'await showTutorial();' '//await showTutorial();'
|
|
||||||
'';
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Open-source autopilot for software development - bring the power of ChatGPT to your IDE";
|
description = "Open-source autopilot for software development - bring the power of ChatGPT to your IDE";
|
||||||
downloadPage = "https://marketplace.visualstudio.com/items?itemName=Continue.continue";
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=Continue.continue";
|
||||||
@@ -1268,6 +1263,23 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
discloud.discloud = buildVscodeMarketplaceExtension {
|
||||||
|
mktplcRef = {
|
||||||
|
publisher = "discloud";
|
||||||
|
name = "discloud";
|
||||||
|
version = "2.21.2";
|
||||||
|
hash = "sha256-es1WjKchxC2hIWOkIRuf5MqMjTYu6qcBgo8abCqTjFc=";
|
||||||
|
};
|
||||||
|
meta = {
|
||||||
|
changelog = "https://marketplace.visualstudio.com/items/discloud.discloud/changelog";
|
||||||
|
description = "A Visual Studio Code extension for hosting and managing applications on Discloud";
|
||||||
|
downloadPage = "https://marketplace.visualstudio.com/items?itemName=discloud.discloud";
|
||||||
|
homepage = "https://github.com/discloud/vscode-discloud";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = [ lib.maintainers.astindev ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
disneystreaming.smithy = buildVscodeMarketplaceExtension {
|
disneystreaming.smithy = buildVscodeMarketplaceExtension {
|
||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
publisher = "disneystreaming";
|
publisher = "disneystreaming";
|
||||||
|
|||||||
@@ -64,6 +64,11 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-Fu3AoHApPi082k6hDkm9qb3pMuI/nmLi+i56x0rPev0=";
|
sha256 = "sha256-Fu3AoHApPi082k6hDkm9qb3pMuI/nmLi+i56x0rPev0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./fix_darwin_x86_compile.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja llvmPackages.llvm pkg-config intltool perl desktop-file-utils wrapGAppsHook ];
|
nativeBuildInputs = [ cmake ninja llvmPackages.llvm pkg-config intltool perl desktop-file-utils wrapGAppsHook ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
From 1620befa933fbe525d8851a8f465db9926b7a588 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mario Zimmermann <mail@zisoft.de>
|
||||||
|
Date: Wed, 14 Feb 2024 22:18:42 +0100
|
||||||
|
Subject: [PATCH] fix xcode compiler segfault
|
||||||
|
|
||||||
|
---
|
||||||
|
src/common/darktable.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/common/darktable.h b/src/common/darktable.h
|
||||||
|
index e5bd1a28902c..2c43b4878bcf 100644
|
||||||
|
--- a/src/common/darktable.h
|
||||||
|
+++ b/src/common/darktable.h
|
||||||
|
@@ -140,7 +140,7 @@ extern "C" {
|
||||||
|
/* Create cloned functions for various CPU SSE generations */
|
||||||
|
/* See for instructions https://hannes.hauswedell.net/post/2017/12/09/fmv/ */
|
||||||
|
/* TL;DR : use only on SIMD functions containing low-level paralellized/vectorized loops */
|
||||||
|
-#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH)
|
||||||
|
+#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH) && !defined(__APPLE__)
|
||||||
|
# if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
|
||||||
|
#define __DT_CLONE_TARGETS__ __attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2", "popcnt", "avx", "avx2", "avx512f", "fma4")))
|
||||||
|
# elif defined(__PPC64__)
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "structorizer";
|
pname = "structorizer";
|
||||||
version = "3.32-20";
|
version = "3.32-21";
|
||||||
|
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "fesch";
|
owner = "fesch";
|
||||||
repo = "Structorizer.Desktop";
|
repo = "Structorizer.Desktop";
|
||||||
rev = version;
|
rev = version;
|
||||||
hash = "sha256-kFgypwSmXRkIyb0ZMcoTSgQdODfn9F81ABlFWATvh3M=";
|
hash = "sha256-pwakwIMmG7A0Rw8XYH/f2PkzzX9bIADL0+52Ucawn3Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./makeStructorizer.patch ./makeBigJar.patch ];
|
patches = [ ./makeStructorizer.patch ./makeBigJar.patch ];
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ stdenv.mkDerivation {
|
|||||||
description = "1Password command-line tool";
|
description = "1Password command-line tool";
|
||||||
homepage = "https://developer.1password.com/docs/cli/";
|
homepage = "https://developer.1password.com/docs/cli/";
|
||||||
downloadPage = "https://app-updates.agilebits.com/product_history/CLI2";
|
downloadPage = "https://app-updates.agilebits.com/product_history/CLI2";
|
||||||
maintainers = with maintainers; [ joelburget marsam ];
|
maintainers = with maintainers; [ joelburget ];
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
inherit mainProgram platforms;
|
inherit mainProgram platforms;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ buildGoModule rec {
|
|||||||
The interface is inspired by htop and shortcut keys are inspired by vim.
|
The interface is inspired by htop and shortcut keys are inspired by vim.
|
||||||
'';
|
'';
|
||||||
homepage = "https://cointop.sh";
|
homepage = "https://cointop.sh";
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = [ ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
mainProgram = "cointop";
|
mainProgram = "cointop";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,6 +47,6 @@ buildPythonApplication rec {
|
|||||||
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.gpl2Only;
|
license = licenses.gpl2Only;
|
||||||
mainProgram = "gallery-dl";
|
mainProgram = "gallery-dl";
|
||||||
maintainers = with maintainers; [ dawidsowa marsam ];
|
maintainers = with maintainers; [ dawidsowa ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{ appimageTools, fetchurl, lib }:
|
{ appimageTools, fetchurl, lib }:
|
||||||
let
|
let
|
||||||
pname = "protonup-qt";
|
pname = "protonup-qt";
|
||||||
version = "2.9.1";
|
version = "2.9.2";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v${version}/ProtonUp-Qt-${version}-x86_64.AppImage";
|
url = "https://github.com/DavidoTek/ProtonUp-Qt/releases/download/v${version}/ProtonUp-Qt-${version}-x86_64.AppImage";
|
||||||
hash = "sha256-rT+vRYGE62SMBYhCsxYc9gnvKpOkqz0Qkr9QtKQx/Uc=";
|
hash = "sha256-d1UjyhU7BezOoQZBnmrk96gD0MbYST0XR+PWVYmvGFQ=";
|
||||||
};
|
};
|
||||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -62,6 +62,6 @@ rustPlatform.buildRustPackage rec {
|
|||||||
'';
|
'';
|
||||||
changelog = "https://github.com/Nukesor/pueue/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/Nukesor/pueue/blob/v${version}/CHANGELOG.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ marsam ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,6 @@ buildGoModule rec {
|
|||||||
description = "SQL language server written in Go";
|
description = "SQL language server written in Go";
|
||||||
mainProgram = "sqls";
|
mainProgram = "sqls";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.marsam ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ssw";
|
pname = "ssw";
|
||||||
version = "0.8";
|
version = "0.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://alpha.gnu.org/gnu/ssw/spread-sheet-widget-${version}.tar.gz";
|
url = "https://alpha.gnu.org/gnu/ssw/spread-sheet-widget-${version}.tar.gz";
|
||||||
sha256 = "sha256-hYnYKY/PO1hQ0JaLBIAaT0D68FVVRPbMnZVLAWLplUs=";
|
sha256 = "sha256-gGkuw1AnGZXhR9x1mSnN1507ZF5rXvqmtX9NLQXoR+U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|||||||
@@ -34,6 +34,6 @@ buildPythonApplication rec {
|
|||||||
mainProgram = "tcd";
|
mainProgram = "tcd";
|
||||||
homepage = "https://github.com/TheDrHax/Twitch-Chat-Downloader";
|
homepage = "https://github.com/TheDrHax/Twitch-Chat-Downloader";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ marsam ];
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "xmrig";
|
pname = "xmrig";
|
||||||
version = "6.21.2";
|
version = "6.21.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xmrig";
|
owner = "xmrig";
|
||||||
repo = "xmrig";
|
repo = "xmrig";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-0ej2+g+B9K50JIs0wi1SfLBsaYTsk+0/cImLLZLNtmc=";
|
hash = "sha256-1lIrxJ1Y5YRoXbZn77Msah5lSVW71gDczYUlXQjf01s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|||||||
@@ -6,17 +6,17 @@ callPackage ./make-brave.nix (removeAttrs args [ "callPackage" ])
|
|||||||
if stdenv.isAarch64 then
|
if stdenv.isAarch64 then
|
||||||
{
|
{
|
||||||
pname = "brave";
|
pname = "brave";
|
||||||
version = "1.65.114";
|
version = "1.65.122";
|
||||||
url = "https://github.com/brave/brave-browser/releases/download/v1.65.114/brave-browser_1.65.114_arm64.deb";
|
url = "https://github.com/brave/brave-browser/releases/download/v1.65.122/brave-browser_1.65.122_arm64.deb";
|
||||||
hash = "sha256-E5IqMmkgnwn1eyKcPQ3SZX4QpGor2W8JH+rmERuUonA=";
|
hash = "sha256-9xcXuK9Qdf8MwE3tcJLpTuJYMCjM3h27eFdgsT/yD38=";
|
||||||
platform = "aarch64-linux";
|
platform = "aarch64-linux";
|
||||||
}
|
}
|
||||||
else if stdenv.isx86_64 then
|
else if stdenv.isx86_64 then
|
||||||
{
|
{
|
||||||
pname = "brave";
|
pname = "brave";
|
||||||
version = "1.65.114";
|
version = "1.65.122";
|
||||||
url = "https://github.com/brave/brave-browser/releases/download/v1.65.114/brave-browser_1.65.114_amd64.deb";
|
url = "https://github.com/brave/brave-browser/releases/download/v1.65.122/brave-browser_1.65.122_amd64.deb";
|
||||||
hash = "sha256-Dn6havSLcf6KCxI1hd8Ad4FsLIOYBH2KO2oCJJQHJm8=";
|
hash = "sha256-zhRH/EG+8Qx9B2Gm5n9DYVwheyfiqIBwyYygART5b6A=";
|
||||||
platform = "x86_64-linux";
|
platform = "x86_64-linux";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user