From 7a3730f90153d136709069d28e2b131f622a2012 Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sat, 29 Jul 2023 14:01:11 -0400 Subject: nixos/systemd: Add util-linux to systemd-mkswap's path --- nixos/modules/system/boot/systemd.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 9557cf45d56..ac55461107f 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -597,6 +597,11 @@ in # drop-in in /etc, it does apply. overrideStrategy = "asDropin"; }; + systemd.services."systemd-mkswap@" = { + restartIfChanged = false; + path = [ pkgs.util-linux ]; + overrideStrategy = "asDropin"; + }; systemd.services.systemd-random-seed.restartIfChanged = false; systemd.services.systemd-remount-fs.restartIfChanged = false; systemd.services.systemd-update-utmp.restartIfChanged = false; -- cgit 1.4.1