dotfiles/nixos/boxes/foureighty/hardware-configuration.nix

48 lines
1 KiB
Nix
Raw Normal View History

2020-07-11 21:02:36 +01:00
{ config, lib, pkgs, ... }:
{
imports = [ ];
2020-07-25 09:56:03 +01:00
boot = {
kernel.sysctl = {
"vm.swappiness" = 75;
};
2020-07-11 21:02:36 +01:00
2020-07-25 09:56:03 +01:00
kernelModules = [ "kvm-intel" "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
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;
2020-07-11 21:02:36 +01:00
};
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 = [ ];
2020-07-25 09:56:03 +01:00
zramSwap = {
enable = true;
algorithm = "zstd";
2021-05-30 11:39:35 +01:00
memoryPercent = 50;
2020-07-25 09:56:03 +01:00
};
nix.maxJobs = 2;
nix.buildCores = 6;
2020-07-11 21:02:36 +01:00
}