Added swapfile and enabled swap
This commit is contained in:
@ -17,10 +17,13 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
#Assign Swap to the PC
|
#Assign Swap to the PC
|
||||||
#swapDevices = [{
|
swapDevices = [
|
||||||
# device = "/swapfile";
|
{
|
||||||
# size = 16 * 1024; # 16GB
|
device = "/swapfile";
|
||||||
#}];
|
size = 34 * 1024; # 34GB
|
||||||
|
#randomEncryption.enable = true; #Doesnt work with hybernation
|
||||||
|
}
|
||||||
|
];
|
||||||
nix = {
|
nix = {
|
||||||
settings.nix-path = config.nix.nixPath;
|
settings.nix-path = config.nix.nixPath;
|
||||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
@ -46,6 +49,7 @@
|
|||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
kernelParams = ["quiet" "splash"];
|
kernelParams = ["quiet" "splash"];
|
||||||
initrd = {
|
initrd = {
|
||||||
|
systemd.enable = true; #For swap to automatically work
|
||||||
verbose = false;
|
verbose = false;
|
||||||
kernelModules = ["amdgpu"];
|
kernelModules = ["amdgpu"];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user