From 569bb001607b516346a671b64ae12157fdd3139f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 12 Apr 2024 21:10:36 +0200 Subject: [PATCH] Use newer kernel --- hosts/gunter/configuration.nix | 36 +++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/hosts/gunter/configuration.nix b/hosts/gunter/configuration.nix index 413b189..4b89ad5 100644 --- a/hosts/gunter/configuration.nix +++ b/hosts/gunter/configuration.nix @@ -13,24 +13,28 @@ sops.secrets."gotify_tokens/backup-home" = { }; # Bootloader stuff - boot.kernelParams = [ - "quiet" - "splash" - "rd.systemd.show_status=false" - ]; + boot = { + # Kernel stuff + kernelPackages = pkgs.linuxPackages_latest; + kernelParams = [ + "quiet" + "splash" + "rd.systemd.show_status=false" + ]; - boot.loader.systemd-boot = { - enable = true; - configurationLimit = 10; + extraModprobeConfig = '' + options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" + options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" + ''; + + # Bootloader stuff + loader.systemd-boot = { + enable = true; + configurationLimit = 10; + }; + loader.efi = { canTouchEfiVariables = true; }; + supportedFilesystems = [ "nfs" ]; }; - boot.supportedFilesystems = [ "nfs" ]; - - boot.loader.efi = { canTouchEfiVariables = true; }; - - boot.extraModprobeConfig = '' - options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" - options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" - ''; # Networking stuff networking.hostName = "gunter"; # Define your hostname.