aboutsummaryrefslogtreecommitdiff
path: root/hosts/sachiel/configuration.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-10-26 19:51:21 +0100
committerschererleander <leander@schererleander.de>2025-10-26 19:52:09 +0100
commit62d698309b0970183c79d61097dabe5fea41028a (patch)
tree01b62daa3e8a2dc162e67097bee2e817b7fca5a4 /hosts/sachiel/configuration.nix
parenteb56e20bd6aaa40fc9430cd47eff6e3e16cd4f2c (diff)
configure swap file
Diffstat (limited to 'hosts/sachiel/configuration.nix')
-rw-r--r--hosts/sachiel/configuration.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hosts/sachiel/configuration.nix b/hosts/sachiel/configuration.nix
index 9af8143..d5310bd 100644
--- a/hosts/sachiel/configuration.nix
+++ b/hosts/sachiel/configuration.nix
@@ -15,6 +15,13 @@
boot.loader.grub.configurationLimit = 2;
zramSwap.enable = true;
+ swapDevices = [
+ {
+ device = "/var/swapfile";
+ size = 4096;
+ }
+ ];
+
networking = {
hostName = host;
domain = "schererleander.de";