nixos/ifstate: remove initrd default dependencies

This commit is contained in:
Marcel
2025-09-09 00:21:22 +02:00
parent bc846d64d2
commit f3f9a71af6

View File

@@ -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 = [