Fix incorrect configuration

This commit is contained in:
Manuel Thalmann 2024-12-08 01:57:18 +01:00
parent bcdd7b0d8a
commit fad6cbe1d2

View file

@ -1,4 +1,4 @@
{ lib, ... }: { lib, config, ... }:
let let
inherit (lib) mkEnableOption mkOption types; inherit (lib) mkEnableOption mkOption types;
in in
@ -16,7 +16,9 @@ in
networkFiles = mkOption { networkFiles = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;
description = "The files for configuring the networks."; description = "The files for configuring the networks.";
default = builtins.mapAttrs (name: network: lib.generators.toINI { listsAsDuplicateKeys = true; } network); default = builtins.mapAttrs
(name: network: lib.generators.toINI { listsAsDuplicateKeys = true; } network)
config.valhalla.linux.programs.systemd-networkd.networks;
}; };
}; };
}; };