From c01733665a514f44445a636dba044ee0ad2f98c8 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Mon, 25 Oct 2021 23:59:11 +0300 Subject: [PATCH] add swap to oracle --- machines/Oracle-Cloud/hardware-configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machines/Oracle-Cloud/hardware-configuration.nix b/machines/Oracle-Cloud/hardware-configuration.nix index 1bdf77c..c0a44ed 100644 --- a/machines/Oracle-Cloud/hardware-configuration.nix +++ b/machines/Oracle-Cloud/hardware-configuration.nix @@ -9,4 +9,8 @@ fileSystems."/boot" = { device = "/dev/disk/by-uuid/C8C5-C634"; fsType = "vfat"; }; boot.initrd.kernelModules = [ "nvme" ]; fileSystems."/" = { device = "/dev/sda3"; fsType = "xfs"; }; + swapDevices = [ { + device = "/dev/disk/by-partuuid/d4aa8434-9803-45ac-9983-07e10e1409b4"; + randomEncryption.enable = true; + } ]; } \ No newline at end of file