From 4cb380812b79be9fa89d31ee5e9ab626f1992a56 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Wed, 30 Apr 2025 18:35:32 -0400 Subject: [PATCH] Pericyte: Add swap --- machines/pericyte/hardware-configuration.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/machines/pericyte/hardware-configuration.nix b/machines/pericyte/hardware-configuration.nix index b26ab3a..1ca17dd 100644 --- a/machines/pericyte/hardware-configuration.nix +++ b/machines/pericyte/hardware-configuration.nix @@ -7,8 +7,12 @@ device = "nodev"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/FCE4-1F46"; fsType = "vfat"; }; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; + swapDevices = [ + { + device = "/swapfile"; + } + ]; boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; - }