From 12747ad801b7f4cf90a1716db5547bb0fb3b72a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 17 Jul 2022 19:36:24 +0200 Subject: nixos: do not use swap device as swap file can be used if needed --- nixos/modules/turris-defaults.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nixos/modules/turris-defaults.nix b/nixos/modules/turris-defaults.nix index ee7f88e..ff2e141 100644 --- a/nixos/modules/turris-defaults.nix +++ b/nixos/modules/turris-defaults.nix @@ -20,11 +20,6 @@ in { default = "NixTurris"; description = "GPT partition label the root system is stored on"; }; - swapLabel = mkOption { - type = types.str; - default = "NixTurrisSwap"; - description = "GPT partition label for available swap parition"; - }; }; }; @@ -57,11 +52,6 @@ in { enable = true; memoryPercent = 80; }; - # Nix is really memory hungry so we have to sometimes also use swap device. - swapDevices = [{ - device = "/dev/disk/by-partlabel/" + cnf.swapLabel; - priority = 0; - }]; fileSystems = { "/" = { -- cgit v1.2.3