[Optimizations] Move optimizations into subfolder

This commit is contained in:
Antoine Viallon 2023-03-24 21:11:14 +01:00
parent 4735347fd2
commit 36ca6d82e4
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
3 changed files with 14 additions and 2 deletions

View file

@ -15,7 +15,7 @@
./laptop.nix
./power.nix
./overlays.nix
./optimizations.nix
./optimizations
./non-persistence.nix
];
}

View file

@ -0,0 +1,6 @@
{ config, ... }:
{
imports = [
./optimizations.nix
];
}

View file

@ -160,7 +160,7 @@ in
};
config = mkIf cfg.enable {
nixpkgs.overlays = mkBefore [
nixpkgs.overlays = mkAfter [
(self: super: {
fastStdenv = super.overrideCC super.gccStdenv (super.buildPackages.gcc_latest.overrideAttrs (old:
let
@ -194,6 +194,12 @@ in
lto = true;
extraCFlags = cfg.extraCompileFlags;
} super.mesa;
optipngOptimized = optimizePkg {
level = "unsafe";
lto = true;
recursive = 1;
parallelize = generalCfg.cores;
} super.optipng;
})
];
};