From 8c661ce91415d7f5f9d6633748517438f180bd95 Mon Sep 17 00:00:00 2001
From: Andre <andre@8bitbuddhism.com>
Date: Sun, 12 Jan 2025 15:25:45 -0500
Subject: [PATCH] Pihole: filesystem optimizations

---
 systems/aarch64-linux/Pihole/default.nix                | 1 -
 systems/aarch64-linux/Pihole/hardware-configuration.nix | 5 +++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/systems/aarch64-linux/Pihole/default.nix b/systems/aarch64-linux/Pihole/default.nix
index b0de39e..dd109fc 100644
--- a/systems/aarch64-linux/Pihole/default.nix
+++ b/systems/aarch64-linux/Pihole/default.nix
@@ -44,7 +44,6 @@ in
     services = {
       autoUpgrade = {
         enable = true;
-        extraFlags = "--build-host hevana";
         configDir = config.${namespace}.secrets.nixConfigFolder;
         onCalendar = "daily";
         user = config.users.users.aires.name;
diff --git a/systems/aarch64-linux/Pihole/hardware-configuration.nix b/systems/aarch64-linux/Pihole/hardware-configuration.nix
index 09425f1..ac0f2ab 100644
--- a/systems/aarch64-linux/Pihole/hardware-configuration.nix
+++ b/systems/aarch64-linux/Pihole/hardware-configuration.nix
@@ -31,6 +31,11 @@
   fileSystems."/" = {
     device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
     fsType = "ext4";
+    options = [
+      "lazytime" # Reduce atime writes: https://wiki.archlinux.org/title/Fstab#atime_options
+      "data=journal" # Commit to the journal before writing to the filesystem.
+      "journal_async_commit"
+    ];
   };
 
   swapDevices = [