From fad6cbe1d235e809a4ac8f538cc1d7e0ca21e509 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 8 Dec 2024 01:57:18 +0100 Subject: [PATCH] Fix incorrect configuration --- lib/modules/programs/systemd-networkd.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/modules/programs/systemd-networkd.nix b/lib/modules/programs/systemd-networkd.nix index e5a009b8..10be7133 100644 --- a/lib/modules/programs/systemd-networkd.nix +++ b/lib/modules/programs/systemd-networkd.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, config, ... }: let inherit (lib) mkEnableOption mkOption types; in @@ -16,7 +16,9 @@ in networkFiles = mkOption { type = types.attrsOf types.str; 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; }; }; };