summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2023-07-29 14:01:11 -0400
committerWill Fancher <elvishjerricco@gmail.com>2023-07-29 14:02:06 -0400
commit7a3730f90153d136709069d28e2b131f622a2012 (patch)
tree26e882b78bdb6e0f59568b3a8d6dde5f329c6e10 /nixos/modules/system/boot/systemd.nix
parent66ce081fafa2dca0038006ec7c6482d7a11d13d8 (diff)
downloadnixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar.gz
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar.bz2
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar.lz
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar.xz
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.tar.zst
nixpkgs-7a3730f90153d136709069d28e2b131f622a2012.zip
nixos/systemd: Add util-linux to systemd-mkswap's path
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r--nixos/modules/system/boot/systemd.nix5
1 files changed, 5 insertions, 0 deletions
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;