From 457bd2571c678aeff677012d4f0224b3947040a7 Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 12 Aug 2025 09:49:54 +0800 Subject: [PATCH] modules.system.nix-ld: disable for non-x86 --- modules/system/nix-ld.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/system/nix-ld.nix b/modules/system/nix-ld.nix index 58805adf..5c6e8f61 100644 --- a/modules/system/nix-ld.nix +++ b/modules/system/nix-ld.nix @@ -1,7 +1,10 @@ inputs: { options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption - { type = types.nullOr (types.submodule {}); default = {}; }; + { + type = types.nullOr (types.submodule {}); + default = if inputs.config.nixos.model.arch == "x86_64" then {} else null; + }; config = let inherit (inputs.config.nixos.system) nix-ld; in inputs.lib.mkIf (nix-ld != null) { programs.nix-ld =