My Nix Infra
nix nixos
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix use swap partition instead of btrfs subvolume swap

ydcjeff 1833269c a087916f

+10 -8
+10 -8
hosts/disk-config.nix
··· 41 41 inherit passwordFile; 42 42 inherit extraFormatArgs; 43 43 content = { 44 - type = "btrfs"; 45 - extraArgs = [ "--force" ]; 46 - subvolumes = { 47 - swap = { 48 - mountpoint = "/swap"; 49 - swap.swapfile.size = "32G"; 50 - }; 51 - }; 44 + type = "swap"; 45 + resumeDevice = true; 46 + discardPolicy = "both"; 47 + # extraArgs = [ "--force" ]; 48 + # subvolumes = { 49 + # swap = { 50 + # mountpoint = "/swap"; 51 + # swap.swapfile.size = "32G"; 52 + # }; 53 + # }; 52 54 }; 53 55 }; 54 56 };