2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
2021-09-07 07:55:53 +02:00
|
|
|
{
|
2022-07-31 11:03:59 +02:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.magic_rb.optimisation;
|
|
|
|
in {
|
2021-09-07 07:55:53 +02:00
|
|
|
options.magic_rb.optimisation = {
|
|
|
|
march = mkOption {
|
|
|
|
description = ''
|
|
|
|
Which march is native to this system, to maximize efficiency.
|
|
|
|
'';
|
|
|
|
type = types.str;
|
|
|
|
default = builtins.trace ''
|
|
|
|
Please enable a more specific march to get better performance
|
|
|
|
'' "x86-64";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|