yodaYoga swap

This commit is contained in:
Daniel Langbein 2023-09-14 15:12:38 +02:00
parent ddb9d0e182
commit dbb1d8ed51
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -8,8 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "uas" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -28,7 +27,14 @@
fsType = "vfat"; 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 # 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 # (the default) this is the recommended approach. When using systemd-networkd it's