From 7745f3dc04eb6a0c9ca7506b52e5481671d7532a Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 25 May 2023 18:18:21 +0200 Subject: [PATCH] [Overlays] move unsued aviallon.overlays.optimizations to aviallon.optimizations.enable --- overlays.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/overlays.nix b/overlays.nix index ac2e584..cef710f 100644 --- a/overlays.nix +++ b/overlays.nix @@ -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 {