From 2ed69d7ef830cd3ab2f8d397e0e8e8a6bc311703 Mon Sep 17 00:00:00 2001 From: DavHau Date: Thu, 3 Apr 2025 17:22:37 +0700 Subject: [PATCH] workaround bug in docs rendering if machine.name is not set --- lib/inventory/eval-clan-modules/default.nix | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/inventory/eval-clan-modules/default.nix b/lib/inventory/eval-clan-modules/default.nix index d11dd4365..04354e8db 100644 --- a/lib/inventory/eval-clan-modules/default.nix +++ b/lib/inventory/eval-clan-modules/default.nix @@ -4,18 +4,18 @@ pkgs, }: let - baseModule = { - imports = (import (pkgs.path + "/nixos/modules/module-list.nix")) ++ [ - ( - { config, ... }: - { - nixpkgs.pkgs = pkgs; - clan.core.name = "dummy"; - system.stateVersion = config.system.nixos.release; - } - ) - ]; - }; + baseModule = + { config, ... }: + { + imports = (import (pkgs.path + "/nixos/modules/module-list.nix")); + nixpkgs.pkgs = pkgs; + clan.core.name = "dummy"; + system.stateVersion = config.system.nixos.release; + # Set this to work around a bug where `clan.core.settings.machine.name` + # is forced due to `networking.interfaces` being forced + # somewhere in the nixpkgs options + facter.detected.dhcp.enable = lib.mkForce false; + }; # This function takes a list of module names and evaluates them # [ module ] -> { config, options, ... }