about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2024-02-27 23:44:57 +0100
committerGitHub <noreply@github.com>2024-02-27 23:44:57 +0100
commit98684f4504e98c11b69cae8b9e1a7031e4989a3d (patch)
treec2c4715695b7ff8676d75e821acea3b8e967511b /nixos/modules
parent6cbeb5d8ab3529f1d3db2070388ee15478d927df (diff)
parent6fbf631a7b289971653939dabe9924d1a4ee660e (diff)
Merge pull request #270611 from astro/systemd-netboot
Systemd netboot
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/installer/netboot/netboot.nix19
1 files changed, 6 insertions, 13 deletions
diff --git a/nixos/modules/installer/netboot/netboot.nix b/nixos/modules/installer/netboot/netboot.nix
index a50f22cbe471d..028a2d74041e6 100644
--- a/nixos/modules/installer/netboot/netboot.nix
+++ b/nixos/modules/installer/netboot/netboot.nix
@@ -62,19 +62,12 @@ with lib;
       };
 
     fileSystems."/nix/store" = mkImageMediaOverride
-      { fsType = "overlay";
-        device = "overlay";
-        options = [
-          "lowerdir=/nix/.ro-store"
-          "upperdir=/nix/.rw-store/store"
-          "workdir=/nix/.rw-store/work"
-        ];
-
-        depends = [
-          "/nix/.ro-store"
-          "/nix/.rw-store/store"
-          "/nix/.rw-store/work"
-        ];
+      { overlay = {
+          lowerdir = [ "/nix/.ro-store" ];
+          upperdir = "/nix/.rw-store/store";
+          workdir = "/nix/.rw-store/work";
+        };
+        neededForBoot = true;
       };
 
     boot.initrd.availableKernelModules = [ "squashfs" "overlay" ];