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:
parent
093e928ff0
commit
5db54d8a21
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue