dotfiles/nixos/modules/optimisation.nix

25 lines
531 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.magic_rb.optimisation;
in {
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";
};
};
}