diff --git a/lib/types/swap.nix b/lib/types/swap.nix index 8c6a5cf..ffd6f26 100644 --- a/lib/types/swap.nix +++ b/lib/types/swap.nix @@ -56,7 +56,7 @@ device = config.device; randomEncryption = config.randomEncryption; }]; - boot.resumeDevice = lib.mkIf config.resumeDevice dev; + boot.resumeDevice = lib.mkIf config.resumeDevice config.device; }]; description = "NixOS configuration"; };