[Overlays] move unsued aviallon.overlays.optimizations to aviallon.optimizations.enable

This commit is contained in:
Antoine Viallon 2023-05-25 18:18:21 +02:00
parent 3f17584a36
commit 7745f3dc04
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -5,6 +5,11 @@ let
cfg = config.aviallon.overlays;
in
{
imports = [
(mkRenamedOptionModule [ "aviallon" "overlays" "optimizations" ] [ "aviallon" "optimizations" "enable" ])
];
options.aviallon.overlays = {
enable = mkOption {
default = true;
@ -12,12 +17,6 @@ in
description = "Wether to enable system-wide overlays or not";
type = types.bool;
};
optimizations = mkOption {
default = true;
example = false;
description = "Wether to enable CPU-specific optimizations for some packages or not";
type = types.bool;
};
traceCallPackage = mkEnableOption "printing package names each time callPackage is evaluated";
};
config = mkIf cfg.enable {