1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: use Linux 5.10 LTS

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-12-27 16:58:50 -05:00
parent 093e928ff0
commit 5db54d8a21
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -4,7 +4,9 @@
{ pkgs, ... }:
let vars = import ./lib/vars.nix;
let
vars = import ./lib/vars.nix;
unstable = import <nixos-unstable-small> { };
in {
imports = [
@ -35,8 +37,12 @@ in {
})
];
# Use the GRUB 2 boot loader with MBR.
boot = {
# Linux kernel 5.10 LTS, and explicitly enable drivetemp for SATA drive
# temperature reporting in hwmon.
kernelPackages = unstable.linuxPackages_5_10;
kernelModules = [ "drivetemp" ];
kernel = {
sysctl = with vars.interfaces.wan0; {
# Forward on all interfaces.
@ -53,7 +59,8 @@ in {
"net.ipv6.conf.${name}.autoconf" = 1;
};
};
# Use GRUB in MBR mode.
# Use the GRUB 2 boot loader with MBR.
loader.grub = {
enable = true;
version = 2;