server10: use latest kernel, enable tmpOnTmpfs

This commit is contained in:
Astro 2022-05-15 02:46:34 +02:00
parent e077cd1cd3
commit 2e18ffa8bb
1 changed files with 3 additions and 0 deletions

View File

@ -17,11 +17,14 @@
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [
"preempt=none"
# No server/router runs any untrusted user code
"mitigations=off"
];
boot.tmpOnTmpfs = true;
boot.tmpOnTmpfsSize = "80%";
networking.hostName = "server10"; # Define your hostname.
networking.hostId = "10101010";