mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Overlays] move unsued aviallon.overlays.optimizations to aviallon.optimizations.enable
This commit is contained in:
parent
3f17584a36
commit
7745f3dc04
1 changed files with 5 additions and 6 deletions
11
overlays.nix
11
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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue