aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-07-17 19:36:24 +0200
committerKarel Kočí <cynerd@email.cz>2022-07-17 19:36:24 +0200
commit12747ad801b7f4cf90a1716db5547bb0fb3b72a0 (patch)
treeaca4f19b13627dd2376f005d24968d76daf9728c
parent482566b84fc9b30538ae4dd090e77a0979aa1a3f (diff)
downloadnixturris-12747ad801b7f4cf90a1716db5547bb0fb3b72a0.tar.gz
nixturris-12747ad801b7f4cf90a1716db5547bb0fb3b72a0.tar.bz2
nixturris-12747ad801b7f4cf90a1716db5547bb0fb3b72a0.zip
nixos: do not use swap device as swap file can be used if needed
-rw-r--r--nixos/modules/turris-defaults.nix10
1 files changed, 0 insertions, 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 = {
"/" = {