From 740ea9631bfcc28eaeb5ed67ff982c2aed218c5e Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 28 Nov 2020 15:52:24 +0100 Subject: [PATCH] Use latest kernel --- roles/workstation.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/roles/workstation.nix b/roles/workstation.nix index b2e68af..b42291c 100644 --- a/roles/workstation.nix +++ b/roles/workstation.nix @@ -6,16 +6,20 @@ # for ihp nix.trustedUsers = [ "root" "me" ]; - # Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - # mount tmp as tmpfs - boot.tmpOnTmpfs = true; + boot = { + # use latest kernel + kernelPackages = pkgs.linuxPackages_latest; + # Use the systemd-boot EFI boot loader. + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = true; + # mount tmp as tmpfs + tmpOnTmpfs = true; - boot.initrd.luks.devices = { - root = { - device = "/dev/nvme0n1p2"; - preLVM = true; + initrd.luks.devices = { + root = { + device = "/dev/nvme0n1p2"; + preLVM = true; + }; }; };