mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
setting up jeeves swap
This commit is contained in:
@@ -42,5 +42,8 @@
|
|||||||
|
|
||||||
users.mutableUsers = lib.mkDefault true;
|
users.mutableUsers = lib.mkDefault true;
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
priority = 1000;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
];
|
];
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
luks.devices = {
|
luks.devices = {
|
||||||
"luks-root-pool-wwn-0x500a0751e6c3c01e-part2".device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part2";
|
"luks-root-pool-wwn-0x500a0751e6c3c01e-part2".device = "/dev/disk/by-id//wwn-0x500a0751e6c3c01e-part2";
|
||||||
"luks-root-pool-wwn-0x500a0751e6c3c01c-part2".device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01c-part2";
|
"luks-root-pool-wwn-0x500a0751e6c3c01c-part2".device = "/dev/disk/by-id//wwn-0x500a0751e6c3c01c-part2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-amd" ];
|
kernelModules = [ "kvm-amd" ];
|
||||||
@@ -51,7 +51,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01c-part3";
|
||||||
|
randomEncryption = {
|
||||||
|
enable = true;
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
priority = 10;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
device = "/dev/disk/by-id/wwn-0x500a0751e6c3c01e-part3";
|
||||||
|
randomEncryption = {
|
||||||
|
enable = true;
|
||||||
|
allowDiscards = true;
|
||||||
|
};
|
||||||
|
priority = 10;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|||||||
Reference in New Issue
Block a user