From 96c3559d9b1c0bfe8c74fb51ed7d462783e5fd25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 11 Jun 2023 15:30:56 +0100 Subject: [PATCH] netboot, cross compile --- config/vf2.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config/vf2.nix b/config/vf2.nix index 6e61eb38..ef6ff26b 100644 --- a/config/vf2.nix +++ b/config/vf2.nix @@ -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"; + }; }