anchor.diff:      name = "initrd-emergency-env";
       paths = map getBin cfg.initrdBin;
       pathsToLink = ["/bin" "/sbin"];
  +    # Make recovery easier
  +    postBuild = ''
  +      ln -s ${cfg.package.util-linux}/bin/mount $out/bin/
  +      ln -s ${cfg.package.util-linux}/bin/umount $out/bin/
  +    '';
     };
   
     initialRamdisk = pkgs.makeInitrdNG {
  -    contents = cfg.objects;
  +    contents = map (path: { object = path; symlink = ""; }) (subtractLists cfg.suppressedStorePaths cfg.storePaths)
  +      ++ mapAttrsToList (_: v: { object = v.source; symlink = v.target; }) (filterAttrs (_: v: v.enable) cfg.contents);
     };
   
   in {
  
positive.code:       not yet supported by the intrd generated with this option.
      '';
  
      package = (lib.mkPackageOption pkgs "systemd" {
        default = "systemdMinimal";
      }) // {
        visible = false;
      };
  
      objects = mkOption {
        description = "List of objects to include in the initrd, and their symlinks";
        example = literalExpression ''
          [ { object = "''${systemd}/lib/systemd/systemd"; symlink = "/init"; } ]
        '';
        visible = false;
        type = types.listOf (types.submodule {
          options = {
            object = mkOption {
              type = types.path;
              description = "The object to include in initrd.";
            };
            symlink = mkOption {
              type = types.nullOr types.path;
              description = "A symlink to create in initrd pointing to the object.";
              default = null;
            };
          };
        });
      };
  
      emergencyAccess = mkOption {
  
negative.code:     boot.initrd.systemd = {
        initrdBin = [pkgs.bash pkgs.coreutils pkgs.kmod cfg.package] ++ config.system.fsPackages;
  
        contents = {
          "/init".source = "${cfg.package}/lib/systemd/systemd";
          "/etc/systemd/system".source = stage1Units;
  
          "/etc/systemd/system.conf".text = ''
            [Manager]
            DefaultEnvironment=PATH=/bin:/sbin
          '';
  
          "/etc/initrd-release".source = config.environment.etc.os-release.source;
          "/etc/os-release".source = config.environment.etc.os-release.source;
          "/etc/fstab".source = fstab;
  
          "/lib/modules".source = "${modulesClosure}/lib/modules";
  
          "/etc/modules-load.d/nixos.conf".text = concatStringsSep "\n" config.boot.initrd.kernelModules;
  
          "/etc/passwd".source = "${pkgs.fakeNss}/etc/passwd";
          "/etc/shadow".text = "root:${if isBool cfg.emergencyAccess then "!" else cfg.emergencyAccess}:::::::";
  
          "/bin".source = "${initrdBinEnv}/bin";
          "/sbin".source = "${initrdBinEnv}/sbin";
  
          "/etc/sysctl.d/nixos.conf".text = "kernel.modprobe = /sbin/modprobe";
        };
  
        storePaths = [
          # TODO: Limit this to the bare necessities
          "${cfg.package}/lib"
  
          "${cfg.package.util-linux}/bin/mount"
          "${cfg.package.util-linux}/bin/umount"
          "${cfg.package.util-linux}/bin/sulogin"
  
          # so NSS can look up usernames
          "${pkgs.glibc}/lib/libnss_files.so"
        ];
  
        targets.initrd.aliases = ["default.target"];
  