nixpkgs/nixos/modules
danbst 8d8a7210e4 zramSwap: allow configure compression algorithm + cleanups
- add `zramSwap.algorithm` option, which allows to change compressor
declaratively. zstd as default
- add `zramSwap.swapDevices` option, which allows to define how many zram
devices will be used as swap. Rest devices can be managed freely
- simpler floating calculations
- fix udev race condition
- some documentation changes
- replaced `/sys/block/zram*` handling with `zramctl`, because I had occasional
"Device is busy" error (looks like zram has to be configured in predefined order)
- added `memoryPercent` and `algorithm` as restart triggers. I think, it was
a bug that changing `memoryPercent` in configuration wasn't applied immediately.
- removed a bind to .swap device. While it looks natural (when swap device goes
off, so should zram device), it wasn't implemented properly. This caused problems
with swapon/swapoff:
```
$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/zram0                              partition       8166024 0       -2
/var/swapfile                           file            5119996 5120    1

$ sudo swapoff -a

$ sudo swapon -a
swapon: /dev/zram0: read swap header failed

$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/var/swapfile                           file            5119996 0       1
```
2019-01-17 15:58:53 +02:00
..
config zramSwap: allow configure compression algorithm + cleanups 2019-01-17 15:58:53 +02:00
hardware nixos/all-firmware: include raspberrypiWirelessFirmware when building 2019-01-03 15:05:38 -06:00
i18n/input-method docs: format 2018-09-29 20:51:11 -04:00
installer Merge pull request #53801 from Mic92/nixos-builders 2019-01-13 21:59:43 +00:00
misc Revert "nixos/modules/misc/nixpkgs.nix: Use pure Nixpkgs function" 2019-01-15 13:11:09 +01:00
profiles modules/profiles/minimal: sound is disabled by default 2019-01-13 13:47:36 +01:00
programs way-cooler: 0.8.0 -> 0.8.1 (#53220) 2019-01-15 23:05:17 +02:00
security nixos/security/misc: expose SMT control option 2018-12-27 15:00:49 +01:00
services Merge pull request #53952 from Ma27/improve-gitea-module 2019-01-15 23:55:16 +02:00
system Merge branch 'master' into staging-next 2019-01-10 13:07:21 +01:00
tasks nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
testing lib.makePerlPath -> perlPackages.makePerlPath 2018-12-15 03:50:31 +00:00
virtualisation Merge pull request #53871 from elseym/fix-container-extraveths 2019-01-14 03:59:19 +00:00
module-list.nix Merge branch 'master' into staging 2018-12-24 15:02:29 +01:00
rename.nix nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00