refactor: move swap config into hardware configuration

This commit is contained in:
Felix Schröter 2022-01-31 23:03:47 +01:00
parent e9df038958
commit b1aa0d9771
Signed by: felschr
GPG key ID: 671E39E6744C807D
2 changed files with 4 additions and 7 deletions

View file

@ -43,7 +43,10 @@
fsType = "vfat";
};
swapDevices = [ ];
swapDevices = [{
device = "/.swap/swapfile";
size = 8192;
}];
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;