From 75de0e8bc9ca83a7d6be0da9036e88a370875f0b Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 7 Dec 2024 17:37:46 +0100 Subject: [PATCH] yodaTux: refactor lan driver config --- hosts/yodaTux/configuration.nix | 6 +++++- hosts/yodaTux/latest-kernel.nix | 21 +++++++++++++++++++ ...an.nix => old-kernel-with-working-lan.nix} | 19 ----------------- 3 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 hosts/yodaTux/latest-kernel.nix rename hosts/yodaTux/{lan.nix => old-kernel-with-working-lan.nix} (63%) diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index ceacc56..994efd2 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -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 diff --git a/hosts/yodaTux/latest-kernel.nix b/hosts/yodaTux/latest-kernel.nix new file mode 100644 index 0000000..420c677 --- /dev/null +++ b/hosts/yodaTux/latest-kernel.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: +{ + # https://nixos.wiki/wiki/Linux_kernel#List_available_kernels + # List all available kernel versions: + # `nix repl` -> `:l ` -> `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; +} diff --git a/hosts/yodaTux/lan.nix b/hosts/yodaTux/old-kernel-with-working-lan.nix similarity index 63% rename from hosts/yodaTux/lan.nix rename to hosts/yodaTux/old-kernel-with-working-lan.nix index a60c75c..9fdb21b 100644 --- a/hosts/yodaTux/lan.nix +++ b/hosts/yodaTux/old-kernel-with-working-lan.nix @@ -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 ` -> `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; }