From bf3594baabfef1dbbed534cd34c9c3bf8e8c51fb Mon Sep 17 00:00:00 2001 From: kuflierl <41301536+kuflierl@users.noreply.github.com> Date: Sat, 17 Jan 2026 04:57:41 +0100 Subject: [PATCH] nixos/services.blocky: add build time config checking, add kuflier as maintainer --- nixos/modules/services/networking/blocky.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/blocky.nix b/nixos/modules/services/networking/blocky.nix index d130e4433a6f..2cd6b28e1293 100644 --- a/nixos/modules/services/networking/blocky.nix +++ b/nixos/modules/services/networking/blocky.nix @@ -16,6 +16,10 @@ in package = lib.mkPackageOption pkgs "blocky" { }; + enableConfigCheck = lib.mkEnableOption "checking the config during build time" // { + default = true; + }; + settings = lib.mkOption { type = format.type; default = { }; @@ -80,6 +84,14 @@ in ]; }; }; + system.checks = lib.mkIf cfg.enableConfigCheck [ + (pkgs.runCommand "check-blocky-config" { } '' + ${lib.getExe cfg.package} --config ${configFile} validate && touch $out + '') + ]; }; - meta.maintainers = with lib.maintainers; [ paepcke ]; + meta.maintainers = with lib.maintainers; [ + paepcke + kuflierl + ]; }