swap: support swapDevices.*.priority option

This just forwards to the underlying NixOS option and expands the mount
script to exhibit the same behavior.
This commit is contained in:
Giel van Schijndel committed 2024-05-06 12:11:58 +02:00
1 parent 8a02c0507c
commit c5a25d5ced
2 files changed
+15 -2

No files matched your search

+1
View File
@@ -29,6 +29,7 @@
content = {
type = "swap";
randomEncryption = true;
priority = 100; # prefer to encrypt as long as we have space for it
};
};
plainSwap = {