Skip to content

Commit

Permalink
swap-to-disk: enable swraid support
Browse files Browse the repository at this point in the history
This has become opt-in for NixOS 23.11 and newer.
  • Loading branch information
mweinelt committed Feb 10, 2024
1 parent 6756151 commit 7515b04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/swap-to-disk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
# of your system's RAM will be required for holding filesystem data.
{ pkgs, ... }:
{
boot.swraid.enable = true;

systemd.services.add-disks-to-swap = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Expand Down

0 comments on commit 7515b04

Please sign in to comment.