post(nixos): mention kernel is LTS

This commit is contained in:
MDLeom 2020-11-08 04:53:57 +00:00
parent 99ac6b142f
commit c5badae866
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 8 additions and 0 deletions

View File

@ -306,10 +306,18 @@ TCP Fast Open ([TFO](https://en.wikipedia.org/wiki/Tcp_fast_open)) is enabled by
Kernel compiled with additional security-oriented patch set. [More details](https://wiki.archlinux.org/index.php/Security#Kernel_hardening).
_NixOS [defaults](https://nixos.wiki/wiki/Linux_kernel) to the latest LTS kernel_
```
# Latest LTS kernel
boot.kernelPackages = pkgs.linuxPackages_hardened;
```
```
# Latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest_hardened;
```
## Remove old, unreferenced packages
Since my web server has limited disk space, it needs to run [garbage collector](https://nixos.org/nixos/manual/index.html#sec-nix-gc) from time to time.