From c74c397acd5255fa3f991d4583a84add1befaae8 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sun, 24 Mar 2024 18:27:46 +0100 Subject: [PATCH] [systems] add swapfile --- nix/systems/phaedra/hardware-configuration.nix | 6 ++++++ nix/systems/talathiel/hardware-configuration.nix | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/nix/systems/phaedra/hardware-configuration.nix b/nix/systems/phaedra/hardware-configuration.nix index 1e9a0ab..1730553 100644 --- a/nix/systems/phaedra/hardware-configuration.nix +++ b/nix/systems/phaedra/hardware-configuration.nix @@ -22,6 +22,12 @@ fsType = "ext4"; }; + # swap + swapDevices = [ { + device = "/swapfile"; + size = 4096; + } ]; + # networking networking.useDHCP = lib.mkDefault true; diff --git a/nix/systems/talathiel/hardware-configuration.nix b/nix/systems/talathiel/hardware-configuration.nix index eddce15..2c1a0b8 100644 --- a/nix/systems/talathiel/hardware-configuration.nix +++ b/nix/systems/talathiel/hardware-configuration.nix @@ -22,6 +22,12 @@ fsType = "ext4"; }; + # swap + swapDevices = [ { + device = "/swapfile"; + size = 4096; + } ]; + # networking networking.useDHCP = lib.mkDefault true;