mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Optimizations] Move optimizations into subfolder
This commit is contained in:
parent
4735347fd2
commit
36ca6d82e4
3 changed files with 14 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
|||
./laptop.nix
|
||||
./power.nix
|
||||
./overlays.nix
|
||||
./optimizations.nix
|
||||
./optimizations
|
||||
./non-persistence.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
6
optimizations/default.nix
Normal file
6
optimizations/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./optimizations.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue