2021-04-02 14:00:21 +02:00
|
|
|
{ lib, modulesPath, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/nixos";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{ device = "/dev/disk/by-label/swap"; }
|
|
|
|
];
|
|
|
|
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
2022-04-27 13:58:03 +02:00
|
|
|
my.hardware = {
|
|
|
|
firmware = {
|
|
|
|
cpuFlavor = "intel";
|
|
|
|
};
|
|
|
|
};
|
2021-05-31 20:30:36 +02:00
|
|
|
|
2022-04-27 13:58:03 +02:00
|
|
|
hardware = {
|
2021-05-31 20:30:36 +02:00
|
|
|
trackpoint = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
emulateWheel = true; # Holding middle buttons allows scrolling
|
2022-03-14 14:01:36 +01:00
|
|
|
|
|
|
|
device = "TPPS/2 Elan TrackPoint"; # Use the correct device name
|
2021-05-31 20:30:36 +02:00
|
|
|
};
|
|
|
|
};
|
2021-04-02 14:00:21 +02:00
|
|
|
}
|