nixconfigs/nixos/hardware-configuration.nix

41 lines
977 B
Nix
Raw Normal View History

2018-09-25 23:09:53 +02:00
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/cb5998ae-cfc9-447f-8756-1ceaec6ca4c4";
2018-09-25 23:09:53 +02:00
fsType = "btrfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/DED9-661B";
2018-09-25 23:09:53 +02:00
fsType = "vfat";
options = [ "discard" ];
2018-09-25 23:09:53 +02:00
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/cb5998ae-cfc9-447f-8756-1ceaec6ca4c4";
fsType = "btrfs";
};
2018-09-25 23:09:53 +02:00
swapDevices =
[ { device = "/dev/disk/by-uuid/bf928178-4e92-4e7e-8df2-18fbd658eecf"; }
2018-09-25 23:09:53 +02:00
];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.trackpoint = {
enable = true;
2019-06-07 18:25:45 +02:00
sensitivity = 220;
speed = 200;
};
2018-09-25 23:09:53 +02:00
}