refactor: move swap config into hardware configuration
This commit is contained in:
parent
e9df038958
commit
b1aa0d9771
|
@ -43,7 +43,10 @@
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [{
|
||||||
|
device = "/.swap/swapfile";
|
||||||
|
size = 8192;
|
||||||
|
}];
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode =
|
hardware.cpu.amd.updateMicrocode =
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
|
@ -15,12 +15,6 @@
|
||||||
./services/pcscd.nix
|
./services/pcscd.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# declarative config broken atm: https://github.com/NixOS/nixpkgs/issues/91986
|
|
||||||
swapDevices = [{
|
|
||||||
device = "/.swap/swapfile";
|
|
||||||
size = 8192;
|
|
||||||
}];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
boot.loader.systemd-boot.memtest86.enable = true;
|
boot.loader.systemd-boot.memtest86.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue