From be816fe3bd593265d1a442679b28fb1f78dd9b4b Mon Sep 17 00:00:00 2001 From: oqyude Date: Tue, 10 Mar 2026 15:43:16 +0300 Subject: [PATCH] turn on swap --- configurations/hardware/server.nix | 6 +++--- configurations/hardware/vds.nix | 6 +++--- configurations/server.nix | 4 ---- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/configurations/hardware/server.nix b/configurations/hardware/server.nix index a4c066f..c36f2e9 100644 --- a/configurations/hardware/server.nix +++ b/configurations/hardware/server.nix @@ -51,9 +51,9 @@ }; }; - # swapDevices = [ - # { device = "/dev/disk/by-partlabel/disk-main-swap"; } - # ]; + swapDevices = [ + { device = "/dev/disk/by-partlabel/disk-main-swap"; } + ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/configurations/hardware/vds.nix b/configurations/hardware/vds.nix index cdbee5a..cfee706 100644 --- a/configurations/hardware/vds.nix +++ b/configurations/hardware/vds.nix @@ -13,9 +13,9 @@ }; }; - # swapDevices = [ - # { device = "/dev/disk/by-partlabel/disk-main-swap"; } - # ]; + swapDevices = [ + { device = "/dev/disk/by-partlabel/disk-main-swap"; } + ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; diff --git a/configurations/server.nix b/configurations/server.nix index 7e3fc68..1ca6125 100644 --- a/configurations/server.nix +++ b/configurations/server.nix @@ -41,10 +41,6 @@ let intel-gpu-tools.enable = true; }; - # swapDevices = [ - # { device = "/dev/disk/by-partlabel/disk-main-swap"; } - # ]; - fileSystems = { # External drive "${xlib.dirs.server-home}" = {