|
11 | 11 | }).latestCompatibleLinuxPackages;
|
12 | 12 | boot.zfs.removeLinuxDRM = lib.mkDefault pkgs.hostPlatform.isAarch64;
|
13 | 13 |
|
14 |
| - documentation.enable = false; |
| 14 | + documentation.enable = lib.mkForce false; |
| 15 | + |
| 16 | + # reduce closure size through package set crafting |
| 17 | + # where there's no otherwise globally effective |
| 18 | + # config setting available |
| 19 | + # TODO: some are candidates for a long-term upstream solution |
| 20 | + nixpkgs.overlays = [ |
| 21 | + (final: prev: { |
| 22 | + # save ~12MB by not bundling manpages |
| 23 | + coreutils-full = prev.coreutils; |
| 24 | + # save ~20MB by making them minimal |
| 25 | + util-linux = prev.util-linux.override { |
| 26 | + nlsSupport = false; |
| 27 | + ncursesSupport = false; |
| 28 | + systemdSupport = false; |
| 29 | + translateManpages = false; |
| 30 | + }; |
| 31 | + # save ~6MB by removing one bash |
| 32 | + bashInteractive = prev.bash; |
| 33 | + # saves ~25MB |
| 34 | + systemd = prev.systemd.override { |
| 35 | + pname = "systemd-slim"; |
| 36 | + withDocumentation = false; |
| 37 | + withCoredump = false; |
| 38 | + withFido2 = false; |
| 39 | + withRepart = false; |
| 40 | + withMachined = false; |
| 41 | + withRemote = false; |
| 42 | + withTpm2Tss = false; |
| 43 | + withLibBPF = false; |
| 44 | + withAudit = false; |
| 45 | + withCompression = false; |
| 46 | + withImportd = false; |
| 47 | + withPortabled = false; |
| 48 | + }; |
| 49 | + }) |
| 50 | + ]; |
| 51 | + systemd.coredump.enable = false; |
| 52 | + |
15 | 53 |
|
16 | 54 | environment.systemPackages = [
|
17 | 55 | # for zapping of disko
|
18 | 56 | pkgs.jq
|
19 | 57 | # for copying extra files of nixos-anywhere
|
20 | 58 | pkgs.rsync
|
| 59 | + # for installing nixos via nixos-anywhere |
| 60 | + config.system.build.nixos-enter |
| 61 | + config.system.build.nixos-install |
21 | 62 | ];
|
22 | 63 |
|
23 | 64 | imports = [
|
|
0 commit comments