The problem was that scriptaddr was set such that it did not leave enough space for extlinux.conf with more than 5 NixOS generations. Setting scriptaddr fixed it. Thanks @thefloweringash!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ...}: { | |
systemd.services.generate-nix-cache-key = { | |
wantedBy = [ "multi-user.target" ]; | |
serviceConfig.Type = "oneshot"; | |
path = [ pkgs.nix ]; | |
script = '' | |
[[ -f /etc/nix/private-key ]] && exit | |
nix-store --generate-binary-cache-key ${config.networking.hostName}-1 /etc/nix/private-key /etc/nix/public-key | |
''; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 462.543781] Unable to handle kernel paging request at virtual address 00756769666e6f53 | |
[ 462.543783] Unable to handle kernel paging request at virtual address 00756769666e6f53 | |
[ 462.543791] Mem abort info: | |
[ 462.552695] Mem abort info: | |
[ 462.552707] ESR = 0x96000004 | |
[ 462.552716] EC = 0x25: DABT (current EL), IL = 32 bits | |
[ 462.552720] SET = 0, FnV = 0 | |
[ 462.552730] EA = 0, S1PTW = 0 | |
[ 462.552730] Data abort info: | |
[ 462.553153] Unable to handle kernel paging request at virtual address 00756769666e6f53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
boot.initrd.postDeviceCommands = '' | |
( | |
cd /sys/bus/platform/drivers/sdhci-arasan | |
while true; do | |
test -e fe330000.sdhci/mmc_host/mmc*/mmc*/block && break | |
echo fe330000.sdhci > unbind | |
echo fe330000.sdhci > bind | |
sleep 1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: { | |
nix.nixPath = ["nixpkgs=/var/lib/nixpkgs"]; | |
systemd.tmpfiles.rules = ["L+ /var/lib/nixpkgs - - - - ${builtins.path { | |
path = pkgs.path; | |
name = "nixpkgs-${pkgs.lib.version}"; | |
}}"]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: { | |
console.keyMap = "uk"; | |
services.xserver.layout = "gb"; | |
services.xserver.xkbOptions = "caps:escape"; | |
systemd.services.caps-escape-console = { | |
wantedBy = ["multi-user.target"]; | |
after = ["systemd-vconsole-setup.service"]; | |
path = [ pkgs.kbd ]; | |
script = '' | |
echo 'keycode 58 = Escape' | loadkeys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
fileSystems."/scratch" = { fsType = "zfs"; device = "ordnungsamd/scratch"; }; | |
systemd.services.clear-scratch = { | |
script = '' | |
/run/booted-system/sw/bin/zfs rollback ordnungsamd/scratch@empty | |
# dropbox is exposed write-only via samba to allow transferring files to my laptop from windows machines | |
install -dm0700 -o linus /scratch/dropbox | |
setfacl -m u:dropper:wx /scratch/dropbox | |
''; | |
path = [ pkgs.acl ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UBNT-BZ.v4.0.80# cat /sys/kernel/debug/clk/clk_summary | |
clock enable_cnt prepare_cnt rate accuracy phase | |
---------------------------------------------------------------------------------------- | |
ahb 1 1 258333333 0 0 | |
ddr 0 0 650000000 0 0 | |
cpu 0 0 775000000 0 0 | |
ref 1 1 25000000 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ath> bootm 0x84000000 | |
## Booting image at 84000000 ... | |
Image Name: Linux-5.7.17+ | |
Created: 1980-01-01 0:00:00 UTC | |
Image Type: MIPS Linux Kernel Image (gzip compressed) | |
Data Size: 2166040 Bytes = 2.1 MB | |
Load Address: 80060000 | |
Entry Point: 803fba30 | |
Verifying Checksum at 0x84000040 ...OK | |
Uncompressing Kernel Image ... OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ find firmware -type f -exec sha256sum {} + | wl-copy | |
b39296a58115f2be5c7f4d856f65f7002839edfda8101ccc18ea579c56ad4816 firmware/isdbtmm.b04 | |
15e2e2571cf59116ebda3da3ac8af6c97d2f2840f13147a9b1828e30ba9bdd02 firmware/securemm.b04 | |
3b9373216c986427625b9cff7ad585ee1b2ef7b8a4b18b9c333a3cbe6bc2418b firmware/goodixfp.b04 | |
fd6e8dd9572931e141f62ab2a91d7a76b687eaa10404b96bd8a8089e44e14274 firmware/cpe_9335.b11 | |
9bccb0fa49e17829b7c4be670319ce0d6035d584990598b5b3d7295c708c1d30 firmware/adsp.b04 | |
87e2719e766166501f833c013025eb87f9c699cce726a315918b781244f67e4f firmware/qmpsecap.b01 | |
49b77a341dd8a77be9fa3a67ab090627430a9cb9e867fed5211e074d9b220b3d firmware/cpe_9335.b29 | |
30baac2bfacb9a0a99b2063fe9b8ad14428b69ac48d3fe84f6c53274985741d8 firmware/modem.b05 | |
9e858cd13a745c5b6684d07899133fadebfb459ed1925fc7ddfd2da7bc131911 firmware/qmpsecap.mdt |