netboot, cross compile

This commit is contained in:
Charlotte 🦝 Delenk 2023-06-11 15:30:56 +01:00
parent ebb9760652
commit 96c3559d9b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -71,12 +71,14 @@
options = ["nofail" "noauto"];
};
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
device = "192.168.2.1:/export/vf2";
fsType = "nfs";
options = ["nofail" "local_lock=all" "nfsvers=4.2"];
};
};
boot.initrd.network.enable = true;
hardware.deviceTree.name = "starfive/jh7110-visionfive-v2.dtb";
system.stateVersion = "22.11";
system.stateVersion = "23.05";
home-manager.users.darkkirb = import ./home-manager/darkkirb.nix {
desktop = false;
inherit args;
@ -108,4 +110,9 @@
system.autoUpgrade.allowReboot = true;
services.tailscale.useRoutingFeatures = "server";
boot.kernel.sysctl."net.ipv4.conf.all.forwarding" = true;
nixpkgs.buildPlatform = {
config = "x86_64-unknown-linux-gnu";
system = "x86_64-linux";
};
}