From c3fa4f91707f5b007539f9ce5fd0319cc2f6db66 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Sun, 18 Jun 2023 12:00:11 +0200 Subject: [PATCH] nixos/systemd: Make the fsck unit depend only on FS packages. This means that this unit no longer need to be rebuilt when the system path is changed. --- nixos/modules/system/boot/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index d2af86fef57c..9557cf45d562 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -587,7 +587,7 @@ in # Some overrides to upstream units. systemd.services."systemd-backlight@".restartIfChanged = false; systemd.services."systemd-fsck@".restartIfChanged = false; - systemd.services."systemd-fsck@".path = [ config.system.path ]; + systemd.services."systemd-fsck@".path = [ pkgs.util-linux ] ++ config.system.fsPackages; systemd.services."systemd-makefs@" = { restartIfChanged = false; path = [ pkgs.util-linux ] ++ config.system.fsPackages;