fix kernel maybe

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-13 18:14:53 +01:00
parent d065424674
commit d62278137b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 17 additions and 28 deletions

View file

@ -25,39 +25,18 @@
boot = {
supportedFilesystems = lib.mkForce ["vfat" "ext4"];
kernelPackages = pkgs.vf2KernelPackages;
kernelParams = [
"console=tty0"
"console=ttyS0,115200"
"earlycon=sbi"
"boot.shell_on_fail"
];
blacklistedKernelModules = [
# Last thing to log before crash...
"axp15060-regulator"
# Also sus
"at24"
# Also also sus
"jh7110-vin"
# Maybe??
"starfive-jh7110-regulator"
# This one stopped the crashing
"starfivecamss"
];
initrd.includeDefaultModules = false;
initrd.availableKernelModules = [
"dw_mmc-pltfm"
"dw_mmc-starfive"
"dwmac-starfive-plat"
"dwmac-starfive"
"spi-dw-mmio"
"mmc_block"
"nvme"
"sdhci" #?
"sdhci-pci" #?
"sdhci"
"sdhci-pci"
"sdhci-of-dwcmshc"
];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
@ -107,6 +86,16 @@
services.tailscale.useRoutingFeatures = "server";
boot.kernel.sysctl."net.ipv4.conf.all.forwarding" = true;
systemd.services."serial-getty@hvc0".enable = false;
# If getty is not explicitly enabled, it will not start automatically.
# https://github.com/NixOS/nixpkgs/issues/84105
systemd.services."serial-getty@ttyS0" = {
enable = true;
wantedBy = ["getty.target"];
serviceConfig.Restart = "always";
};
nixpkgs = {
buildPlatform.config = "x86_64-linux";
hostPlatform.config = "riscv64-linux";

View file

@ -1226,11 +1226,11 @@
]
},
"locked": {
"lastModified": 1686668996,
"narHash": "sha256-hifFE0Zab48I9indu8vnb7buzHYLkLmQfFVJnM0cY1g=",
"lastModified": 1686676404,
"narHash": "sha256-H+VJGmD3HBsw+kMdhEFYG0inf3i5ydcsOEBAhdRii7I=",
"ref": "main",
"rev": "a2b1466ac80273e36ea5a165f22fb54be9859ef5",
"revCount": 906,
"rev": "39b87da3f4aea309352fcafd592eb4b7526985e4",
"revCount": 908,
"type": "git",
"url": "https://git.chir.rs/darkkirb/nix-packages.git"
},