mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 02:09:26 +08:00
modules.system.nix-ld: disable for non-x86
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
inputs:
|
inputs:
|
||||||
{
|
{
|
||||||
options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption
|
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)
|
config = let inherit (inputs.config.nixos.system) nix-ld; in inputs.lib.mkIf (nix-ld != null)
|
||||||
{
|
{
|
||||||
programs.nix-ld =
|
programs.nix-ld =
|
||||||
|
|||||||
Reference in New Issue
Block a user