From 17cb144b5d4d30261b0d931adaa4b86bc0c1d0ac Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 11 Apr 2025 15:45:42 -0700 Subject: [PATCH] Switch to actively-enabled swap. I've already had some crashes while rebuilding the system due to auto-of-memory errors. --- anythingforafriend/etc/nixos/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anythingforafriend/etc/nixos/configuration.nix b/anythingforafriend/etc/nixos/configuration.nix index 2a8857f..49167e0 100644 --- a/anythingforafriend/etc/nixos/configuration.nix +++ b/anythingforafriend/etc/nixos/configuration.nix @@ -107,6 +107,7 @@ settings.KbdInteractiveAuthentication = false; settings.PermitRootLogin = "no"; }; + services.swapspace.enable = true; # Set your time zone. @@ -133,7 +134,6 @@ openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvhtF6nRWlA6PVs71Eek7p0p2PxTd3P6ZEGFV2t75MB eliribble@nixos"]; }; users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvhtF6nRWlA6PVs71Eek7p0p2PxTd3P6ZEGFV2t75MB eliribble@nixos'' ]; - zramSwap.enable = true;