48 lines
1,022 B
Nix
48 lines
1,022 B
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t480
|
|
];
|
|
|
|
boot = {
|
|
kernel.sysctl = {
|
|
"vm.swappiness" = 95;
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
initrd = {
|
|
kernelModules = [ "dm-snapshot" ];
|
|
availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
|
luks.devices = {
|
|
root = {
|
|
device = "/dev/disk/by-uuid/a9e8a44f-15be-4844-a0a1-46892cc5e44e";
|
|
allowDiscards = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
loader.grub = {
|
|
device = "nodev";
|
|
efiSupport = true;
|
|
};
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
fileSystems."/" = { device = "/dev/disk/by-uuid/7ae9348d-604e-4196-a27b-24a7495438c3"; fsType = "ext4"; };
|
|
|
|
fileSystems."/boot" = { device = "/dev/disk/by-uuid/C4DD-2374"; fsType = "vfat"; };
|
|
|
|
swapDevices = [ ];
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 75;
|
|
};
|
|
|
|
nix.maxJobs = 2;
|
|
nix.buildCores = 6;
|
|
}
|