mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +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;
|
cfg = config.aviallon.overlays;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(mkRenamedOptionModule [ "aviallon" "overlays" "optimizations" ] [ "aviallon" "optimizations" "enable" ])
|
||||||
|
];
|
||||||
|
|
||||||
options.aviallon.overlays = {
|
options.aviallon.overlays = {
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -12,12 +17,6 @@ in
|
||||||
description = "Wether to enable system-wide overlays or not";
|
description = "Wether to enable system-wide overlays or not";
|
||||||
type = types.bool;
|
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";
|
traceCallPackage = mkEnableOption "printing package names each time callPackage is evaluated";
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue