workaround bug in docs rendering if machine.name is not set

This commit is contained in:
DavHau
2025-04-03 17:22:37 +07:00
parent a88167f456
commit 2ed69d7ef8

View File

@@ -4,18 +4,18 @@
pkgs, pkgs,
}: }:
let let
baseModule = { baseModule =
imports = (import (pkgs.path + "/nixos/modules/module-list.nix")) ++ [ { config, ... }:
( {
{ config, ... }: imports = (import (pkgs.path + "/nixos/modules/module-list.nix"));
{ nixpkgs.pkgs = pkgs;
nixpkgs.pkgs = pkgs; clan.core.name = "dummy";
clan.core.name = "dummy"; system.stateVersion = config.system.nixos.release;
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 # This function takes a list of module names and evaluates them
# [ module ] -> { config, options, ... } # [ module ] -> { config, options, ... }