Talk: Swap
From NixOS Wiki
Disable Swap
Changing my hardware-config swap line to `swapDevices = lib.mkForce [];` didn't seem to work. nixos-rebuild did mention that it thought it was disabling the swap device when I rebuilt: "`stopping swap device: /dev/disk/by-uuid/4de88123-ff86-4745-a203-c7ba79ba941e`", but `swapon -s` and /etc/fstab still list an active swap partition, even after a reboot.
I think `swapon -s` might have been putting it back in fstab, but `free -m` was detecting swap even when it wasn't mentioned in fstab. When I reboot, that will also put it back in fstab. (I think fstab just isn't load-bearing here)
--MakoConstruct (talk) 04:22, 14 September 2024 (UTC)