From 8197776b8ded91f08e6f51bb7f4b9b76c61ab8f6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Tue, 11 Apr 2023 17:17:00 +0200
Subject: [PATCH] feat(lattepanda): remove swapfile

---
 hardware/lattepanda.nix | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/hardware/lattepanda.nix b/hardware/lattepanda.nix
index 6d06a93..84df4e9 100644
--- a/hardware/lattepanda.nix
+++ b/hardware/lattepanda.nix
@@ -30,13 +30,6 @@
     options = [ "subvol=@home" "compress-force=zstd:1" "noatime" ];
   };
 
-  fileSystems."/.swap" = {
-    device = "/dev/disk/by-uuid/70f03d67-e248-42f6-a204-c02e4f180531";
-    fsType = "btrfs";
-    options = [ "subvol=@swap" "nodatacow" "noatime" ];
-    neededForBoot = true;
-  };
-
   fileSystems."/.snapshots" = {
     device = "/dev/disk/by-uuid/70f03d67-e248-42f6-a204-c02e4f180531";
     fsType = "btrfs";
@@ -48,11 +41,6 @@
     fsType = "vfat";
   };
 
-  swapDevices = [{
-    device = "/.swap/swapfile";
-    size = 8096;
-  }];
-
   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
   # (the default) this is the recommended approach. When using systemd-networkd it's
   # still possible to use this option, but it's recommended to use it in conjunction