From 021564ffd40d54a59dd461b7d0d5e00a3c86ed0e Mon Sep 17 00:00:00 2001 From: Soispha Peetz Date: Thu, 29 Oct 2026 23:32:22 +0100 Subject: 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. --- modules/default.nix | 8 +++----- modules/vhack/mo/monitoring/components/prometheus.nix | 4 ++-- modules/vhack/ni/nix-sync/module.nix | 1 - 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'modules') 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; -- cgit v1.3.1