Unverified Commit f3f9a71a authored by Marcel's avatar Marcel
Browse files

nixos/ifstate: remove initrd default dependencies

parent bc846d64
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -176,6 +176,11 @@ in
          "network.target"
        ];

        unitConfig = {
          # Avoid default dependencies like "basic.target", which prevents ifstate from starting before luks is unlocked.
          DefaultDependencies = "no";
        };

        # mount is always available on nixos, avoid adding additional store paths to the closure
        path = [ "/run/wrappers" ];

@@ -291,6 +296,11 @@ in
              "network.target"
            ];

            unitConfig = {
              # Avoid default dependencies like "basic.target", which prevents ifstate from starting before luks is unlocked.
              DefaultDependencies = "no";
            };

            # mount is always available on nixos, avoid adding additional store paths to the closure
            # https://github.com/NixOS/nixpkgs/blob/2b8e2457ebe576ebf41ddfa8452b5b07a8d493ad/nixos/modules/system/boot/systemd/initrd.nix#L550-L551
            path = [