Feature: WIP homelab kernel configuration.
This commit is contained in:
parent
88637fe95b
commit
7f3e849b8c
8 changed files with 9508 additions and 0 deletions
7476
machines/homelab/kernel/config
Normal file
7476
machines/homelab/kernel/config
Normal file
File diff suppressed because it is too large
Load diff
21
machines/homelab/kernel/config_to_nix.sh
Normal file
21
machines/homelab/kernel/config_to_nix.sh
Normal 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 '};'
|
||||
14
machines/homelab/kernel/default.nix
Normal file
14
machines/homelab/kernel/default.nix
Normal 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"
|
||||
];
|
||||
}
|
||||
1990
machines/homelab/kernel/kernel.nix
Normal file
1990
machines/homelab/kernel/kernel.nix
Normal file
File diff suppressed because it is too large
Load diff
7
machines/homelab/kernel/shell.nix
Normal file
7
machines/homelab/kernel/shell.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
let
|
||||
aarch32 = pkgs.pkgsCross.armv7l-hf-multiplatform;
|
||||
in
|
||||
aarch32.linux
|
||||
BIN
machines/homelab/kernel/tegra30-microsoft-surface-rt-efi.dtb
Normal file
BIN
machines/homelab/kernel/tegra30-microsoft-surface-rt-efi.dtb
Normal file
Binary file not shown.
BIN
machines/homelab/kernel/tegra30-microsoft-surface-rt.dtb
Normal file
BIN
machines/homelab/kernel/tegra30-microsoft-surface-rt.dtb
Normal file
Binary file not shown.
BIN
machines/homelab/kernel/zImage
Normal file
BIN
machines/homelab/kernel/zImage
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue