From dbb1d8ed51d4d4b2bc4bb86edf204975793a736d Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 14 Sep 2023 15:12:38 +0200 Subject: [PATCH] yodaYoga swap --- hosts/yodaYoga/hardware-configuration.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hosts/yodaYoga/hardware-configuration.nix b/hosts/yodaYoga/hardware-configuration.nix index af6578c..47f677a 100644 --- a/hosts/yodaYoga/hardware-configuration.nix +++ b/hosts/yodaYoga/hardware-configuration.nix @@ -8,8 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "uas" "sd_mod" "sdhci_pci" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -28,7 +27,14 @@ fsType = "vfat"; }; - swapDevices = [ ]; + fileSystems."/swap" = + { device = "/dev/disk/by-uuid/90156ea3-7098-445f-932f-0db166787284"; + fsType = "btrfs"; + options = [ "subvol=@swap" ]; + }; + + + swapDevices = [ { device = "/swap/swapfile"; } ]; # 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