From 655865e77a65e7b4b88a5ed4447d53c3bab76e0f Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Tue, 2 Jun 2026 10:32:14 +0000 Subject: [PATCH] Update flake.nix --- flake.nix | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 4d2f32a..62fd2fa 100644 --- a/flake.nix +++ b/flake.nix @@ -23,19 +23,31 @@ ]; }; - netboot = nixpkgs.lib.nixosSystem { - inherit system; +netboot = nixpkgs.lib.nixosSystem { + inherit system; - modules = [ - ./installer.nix + modules = [ + ./installer.nix - ({ modulesPath, ... }: { - imports = [ - (modulesPath + "/installer/netboot/netboot-minimal.nix") - ]; - }) - ]; - }; + ({ modulesPath, ... }: { + imports = [ + (modulesPath + "/installer/netboot/netboot-minimal.nix") + ]; + + # 🔥 critical: prevent ISO/live media assumptions + boot.supportedFilesystems = [ "tmpfs" "vfat" "ext4" ]; + boot.kernelParams = [ + "ip=dhcp" + ]; + + # optional but helps avoid root confusion + fileSystems."/" = { + device = "tmpfs"; + fsType = "tmpfs"; + }; + }) + ]; +}; in { packages.default = iso;