nixos/yggdrasil: ensure freeformType attrs are resolved

`lib.types.attrs` is too lenient, allowing for invalid yggdrasil
configuration to make it's way into the final config. Since this
configuration ends up in a JSON file, changing the `freeformType` to
use the type definition from `pkgs.formats.json` allows for the
configuration to resolve correctly.
This commit is contained in:
Jared Baur
2026-01-09 10:21:35 -08:00
parent 10eff30c8a
commit 2e44c17992
@@ -13,7 +13,6 @@ let
bool
listOf
str
attrs
submodule
;
cfg = config.services.yggdrasil;
@@ -69,7 +68,7 @@ in
settings = mkOption {
type = submodule {
freeformType = attrs;
freeformType = (pkgs.formats.json { }).type;
options = {
PrivateKeyPath = mkOption {
type = nullOr path;