yodaTux: refactor lan driver config

This commit is contained in:
Daniel Langbein 2024-12-07 17:37:46 +01:00
parent d89f233247
commit 75de0e8bc9
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 26 additions and 20 deletions

View File

@ -3,7 +3,11 @@
imports =
[
./hardware-configuration.nix
./lan.nix
# Chose one of these two:
#./old-kernel-with-working-lan.nix
./latest-kernel.nix
../../modules/home-manager.nix
../../modules/nur-and-unstable.nix
../../modules/unfree.nix

View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
# https://nixos.wiki/wiki/Linux_kernel#List_available_kernels
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default value.
#boot.kernelPackages = pkgs.linuxPackages;
# Latest stable.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Latest unstable.
#boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
# Hardened.
# https://archlinux.org/packages/extra/x86_64/linux-hardened/
# -> https://github.com/anthraxx/linux-hardened
#boot.kernelPackages = pkgs.linuxPackages_hardened;
# Free/Libre.
# https://en.wikipedia.org/wiki/Linux-libre
#boot.kernelPackages = pkgs.linuxPackages-libre;
}

View File

@ -17,17 +17,6 @@
config.boot.kernelPackages.r8168
];
# https://nixos.wiki/wiki/Linux_kernel#List_available_kernels
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default value.
#boot.kernelPackages = pkgs.linuxPackages;
# Latest stable.
#boot.kernelPackages = pkgs.linuxPackages_latest;
# Latest unstable.
#boot.kernelPackages = pkgs.unstable.linuxPackages_latest;
# LTS, see https://endoflife.date/linux
# TODO: When NixOS 26.05 is out, this kernel is near EOL
#boot.kernelPackages = pkgs.linuxPackages_5_15;
@ -36,12 +25,4 @@
# TODO: When NixOS 26.05 is out, this kernel is near EOL
boot.kernelPackages = pkgs.linuxPackages_6_1;
nixpkgs.config.allowBroken = true;
# Hardened.
# https://archlinux.org/packages/extra/x86_64/linux-hardened/
# -> https://github.com/anthraxx/linux-hardened
#boot.kernelPackages = pkgs.linuxPackages_hardened;
# Free/Libre.
# https://en.wikipedia.org/wiki/Linux-libre
#boot.kernelPackages = pkgs.linuxPackages-libre;
}