nixos-module/defaults: set kernel paremeters/version
This commit is contained in:
parent
bafa33b229
commit
b81923a444
|
@ -1,6 +1,11 @@
|
||||||
{ hostName, inputs, pkgs, options, lib, ... }:
|
{ 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 = {
|
nix = {
|
||||||
package = pkgs.nixFlakes;
|
package = pkgs.nixFlakes;
|
||||||
extraOptions = "experimental-features = nix-command flakes";
|
extraOptions = "experimental-features = nix-command flakes";
|
||||||
|
|
|
@ -40,8 +40,6 @@
|
||||||
boot.loader.grub.version = 2;
|
boot.loader.grub.version = 2;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
boot.kernelParams = [ "mitigations=off" ];
|
|
||||||
|
|
||||||
networking.hostName = "server2"; # Define your hostname.
|
networking.hostName = "server2"; # Define your hostname.
|
||||||
networking.hostId = "52525252";
|
networking.hostId = "52525252";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue