nixpkgs/nixos/modules/services
Alyssa Ross 8aa8e0ce7f
nixos/udev: compress all firmware if supported
This should be a significant disk space saving for most NixOS
installations.  This method is a bit more complicated than doing it in
the postInstall for the firmware derivations, but this way it's
automatic, so each firmware package doesn't have to separately
implement its compression.

Currently, only xz compression is supported, but it's likely that
future versions of Linux will additionally support zstd, so I've
written the code in such a way that it would be very easy to implement
zstd compression for those kernels when they arrive, falling back to
xz for older (current) kernels.

I chose the highest possible level of compression (xz -9) because even
at this level, decompression time is negligible.  Here's how long it took
to decompress every firmware file my laptop uses:

	i915/kbl_dmc_ver1_04.bin                  	2ms
	regulatory.db                             	4ms
	regulatory.db.p7s                         	3ms
	iwlwifi-7265D-29.ucode                    	62ms
	9d71-GOOGLE-EVEMAX-0-tplg.bin             	22ms
	intel/dsp_fw_kbl.bin                      	65ms
	dsp_lib_dsm_core_spt_release.bin          	6ms
	intel/ibt-hw-37.8.10-fw-22.50.19.14.f.bseq	7ms

And since booting NixOS is a parallel process, it's unlikely (but
difficult to measure) that the time to user interaction was held up at
all by most of these.

Fixes (partially?) #148197
2022-05-13 14:36:34 +00:00
..
admin
amqp
audio
backup nixos/borgmatic: use pkgs.formats.yaml 2022-05-08 01:08:28 -07:00
blockchain/ethereum
cluster
computing
continuous-integration treewide: chown user:group instead of user.group to fix warnings from coreutils 9.1 2022-05-05 22:05:18 +00:00
databases
desktops
development
display-managers
editors
finance
games factorio: Add loadLatestSave 2022-05-06 17:50:35 +01:00
hardware nixos/udev: compress all firmware if supported 2022-05-13 14:36:34 +00:00
home-automation nixos/home-assistant: fix openFirewall 2022-05-05 15:04:46 -07:00
logging treewide: pkgs.systemd -> config.systemd.package 2022-05-05 20:00:31 +02:00
mail treewide: pkgs.systemd -> config.systemd.package 2022-05-05 20:00:31 +02:00
matrix nixos/matrix-synapse: Add a defaultText 2022-05-05 12:22:37 +02:00
misc dendrite: 0.8.1 -> 0.8.4 2022-05-11 18:40:05 +08:00
monitoring Merge pull request #169216 from Shawn8901/fix_prometheus_config_generation 2022-05-08 15:09:09 +02:00
network-filesystems
networking Merge pull request #171650 from helsinki-systems/feat/config-systemd-package 2022-05-09 10:23:04 +02:00
printing
scheduling
search
security Merge pull request #171650 from helsinki-systems/feat/config-systemd-package 2022-05-09 10:23:04 +02:00
system
torrent
ttys
video
wayland treewide: pkgs.systemd -> config.systemd.package 2022-05-05 20:00:31 +02:00
web-apps nixos/snipe-it: init 2022-05-10 16:57:21 +02:00
web-servers
x11 Merge pull request #171650 from helsinki-systems/feat/config-systemd-package 2022-05-09 10:23:04 +02:00