Feature: WIP homelab kernel configuration.

This commit is contained in:
boyreau 2026-09-06 17:07:05 +02:00
commit 7f3e849b8c
8 changed files with 9508 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
echo 'structuredExtraConfig = with pkgs.lib.kernel; {'
while read -r line
do
if ! [[ -z "$line" ]] && ! [[ "$line" =~ "#" ]]; then
export NAME=$(echo ${line:7} | cut -d= -f1)
export VALUE=$(echo -n $line | cut -d= -f2)
echo -n "$NAME = "
case $VALUE in
"y")
echo -n "yes";;
"n")
echo -n "no";;
*)
echo -n $VALUE;
esac;
echo ";";
fi;
done < config;
echo '};'

View file

@ -0,0 +1,14 @@
{
imports = [
./kernel.nix
];
boot.kernelParams = [
"dtb=linux-6.18.0+\tegra30-microsoft-surface-rt-efi.dtb"
"root=PARTUUID=acbd1234-04"
"rw"
"rootwait"
"console=tty0"
"cpuidle.off=1"
];
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,7 @@
{
pkgs ? import <nixpkgs> { },
}:
let
aarch32 = pkgs.pkgsCross.armv7l-hf-multiplatform;
in
aarch32.linux

Binary file not shown.