diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-01-05 21:23:04 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-01-12 14:54:51 +0300 |
commit | 8d4bc5c029b8ce92ed7aebdc1178b6aef013310a (patch) | |
tree | c39a06adbcafe1d1a5ad0ebcfcadc9519be99e17 /nixos/modules/config/swap.nix | |
parent | d82c0f97901154ac93a9f69c1c98693da275b822 (diff) | |
download | nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar.gz nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar.bz2 nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar.lz nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar.xz nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.tar.zst nixpkgs-8d4bc5c029b8ce92ed7aebdc1178b6aef013310a.zip |
nixos/swap: fix stopping mkswap for encrypted device
Diffstat (limited to 'nixos/modules/config/swap.nix')
-rw-r--r-- | nixos/modules/config/swap.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/swap.nix b/nixos/modules/config/swap.nix index 9a5d6a9fc33..0ab5bb3d89c 100644 --- a/nixos/modules/config/swap.nix +++ b/nixos/modules/config/swap.nix @@ -149,7 +149,7 @@ in unitConfig.DefaultDependencies = false; # needed to prevent a cycle serviceConfig.Type = "oneshot"; serviceConfig.RemainAfterExit = sw.randomEncryption; - serviceConfig.ExecStop = optionalString sw.randomEncryption "cryptsetup luksClose ${sw.deviceName}"; + serviceConfig.ExecStop = optionalString sw.randomEncryption "${pkgs.cryptsetup}/bin/cryptsetup luksClose ${sw.deviceName}"; }; in listToAttrs (map createSwapDevice (filter (sw: sw.size != null || sw.randomEncryption) config.swapDevices)); |