I have not tested this on my Fedora 37 Framework yet as it’s encrypted and I haven’t gotten to it yet.
Note the use of swap file, not partition - swap partition did not work reliably for me.
That said, this “should” be pretty close as this is what I use on Ubuntu:
1 Like