nixos-module/defaults: set kernel paremeters/version

This commit is contained in:
Astro 2021-04-06 18:38:59 +02:00
parent bafa33b229
commit b81923a444
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,11 @@
{ hostName, inputs, pkgs, options, lib, ... }:
{
# No server/router runs any untrusted user code
boot.kernelParams = [ "mitigations=off" ];
# Includes wireguard
boot.kernelPackages = pkgs.linuxPackages_latest;
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";

View File

@ -40,8 +40,6 @@
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda";
boot.kernelParams = [ "mitigations=off" ];
networking.hostName = "server2"; # Define your hostname.
networking.hostId = "52525252";