From f7ebcbcc1d9d37e6a46db892fbd4be127f1faae5 Mon Sep 17 00:00:00 2001
From: ansgarz <ansgar.zwick@meissa.de>
Date: Fri, 28 Feb 2025 16:53:08 +0100
Subject: [PATCH] [skip ci] correct newline for configureNoSwappiness

---
 .../provs/desktop/infrastructure/NoSwappiness.kt                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NoSwappiness.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NoSwappiness.kt
index 94ffb13..260a7f4 100644
--- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NoSwappiness.kt
+++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/NoSwappiness.kt
@@ -6,5 +6,5 @@ import java.io.File
 
 fun Prov.configureNoSwappiness() = task {
     // set swappiness to 0
-    addTextToFile("vm.swappiness=0", File("/etc/sysctl.conf"), sudo = true)
+    addTextToFile("\nvm.swappiness=0\n", File("/etc/sysctl.conf"), sudo = true)
 }
\ No newline at end of file