Skip to content

Commit

Permalink
no stub: <insert TLC song>
Browse files Browse the repository at this point in the history
This feature was introduced in
NixOS/nixpkgs#269551 and is mostly useful for
servers.

Saves around 80MiB of evaluation on x86_64 due to the extra i686 nixpkgs
instance.
  • Loading branch information
zimbatm committed Feb 13, 2024
1 parent e6f41df commit 306271f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nixos/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
# unecessary rebuilds.
environment.noXlibs = false;

# Don't install the /lib/ld-linux.so.2 stub. This saves one instance of
# nixpkgs.
environment.ldso32 = null;

# Ensure a clean & sparkling /tmp on fresh boots.
boot.tmp.cleanOnBoot = lib.mkDefault true;
}
4 changes: 4 additions & 0 deletions nixos/server/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
# No mutable users by default
users.mutableUsers = false;

# Don't install the /lib/ld-linux.so.2 and /lib64/ld-linux-x86-64.so.2
# stubs. Server users should know what they are doing.
environment.stub-ld.enable = false;

systemd = {
# Given that our systems are headless, emergency mode is useless.
# We prefer the system to attempt to continue booting so
Expand Down

0 comments on commit 306271f

Please sign in to comment.