aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSoispha Peetz <soispha@b-peetz.de>2026-10-29 23:32:22 +0100
committerSoispha Peetz <soispha@b-peetz.de>2026-11-27 00:27:17 +0100
commit021564ffd40d54a59dd461b7d0d5e00a3c86ed0e (patch)
tree86e5d3612603fdf50b84c4c3fb62b0537da28249 /modules
parenttests/stalwart-*: Hard disable them (diff)
downloadnixos-server-021564ffd40d54a59dd461b7d0d5e00a3c86ed0e.zip
treewide: Rework entry points and attribute names
That just makes a lot of stuff easier and more streamlined. Also, all choices between stable or unstable nixpkgs should now be explicit.
Diffstat (limited to 'modules')
-rw-r--r--modules/default.nix8
-rw-r--r--modules/vhack/mo/monitoring/components/prometheus.nix4
-rw-r--r--modules/vhack/ni/nix-sync/module.nix1
3 files changed, 5 insertions, 8 deletions
diff --git a/modules/default.nix b/modules/default.nix
index bcafc53..ca3c7c8 100644
--- a/modules/default.nix
+++ b/modules/default.nix
@@ -1,14 +1,12 @@
-{nixLib, ...}: let
+{extra_lib, ...}: let
vhack = builtins.attrValues (
- nixLib.mkByName {
+ extra_lib.mkByName {
baseDirectory = ./vhack;
fileName = "module.nix";
}
);
- files =
- []
- ++ vhack;
+ files = vhack;
in {
imports = files;
}
diff --git a/modules/vhack/mo/monitoring/components/prometheus.nix b/modules/vhack/mo/monitoring/components/prometheus.nix
index ca947d3..2aaf56d 100644
--- a/modules/vhack/mo/monitoring/components/prometheus.nix
+++ b/modules/vhack/mo/monitoring/components/prometheus.nix
@@ -1,7 +1,7 @@
{
lib,
config,
- nixLib,
+ extra_lib,
...
}: let
cfg = config.vhack.monitoring.prometheus;
@@ -156,7 +156,7 @@ in {
];
scrapeConfigs = builtins.map (attr:
- nixLib.warnMerge {
+ extra_lib.warnMerge {
job_name = attr.name;
static_configs = [
{
diff --git a/modules/vhack/ni/nix-sync/module.nix b/modules/vhack/ni/nix-sync/module.nix
index 9ddd210..02458b7 100644
--- a/modules/vhack/ni/nix-sync/module.nix
+++ b/modules/vhack/ni/nix-sync/module.nix
@@ -2,7 +2,6 @@
config,
lib,
modulesPath,
- nixLib,
...
}: let
cfg = config.vhack.nix-sync;