2023-03-21 17:23:32 +01:00
|
|
|
{ config, ... }: {
|
2022-04-27 00:21:19 +02:00
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
|
|
|
boot.initrd.kernelModules = [ ];
|
2022-09-21 18:36:31 +02:00
|
|
|
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" "nf_nat_ftp" ];
|
2023-01-31 17:13:02 +01:00
|
|
|
boot.kernelParams = [ "amd_pstate.shared_mem=1" ];
|
2022-07-02 19:09:47 +02:00
|
|
|
boot.extraModulePackages = [ ] ++
|
2023-01-31 17:13:02 +01:00
|
|
|
(with config.boot.kernelPackages; [ rtl88x2bu zenpower cpupower ]);
|
2021-11-21 19:07:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/42065c7e-d0aa-4de8-a913-014cf59d48ac";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/4064-A1BE";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
fileSystems."/home" = {
|
2022-04-23 22:53:56 +02:00
|
|
|
device = "/dev/disk/by-uuid/082ec5d2-238e-4713-9c37-31b1cb0fb8c3";
|
2022-03-01 22:19:03 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-11-21 19:07:12 +01:00
|
|
|
|
2022-04-27 00:21:19 +02:00
|
|
|
swapDevices = [{ device = "/dev/disk/by-uuid/d93788f7-1b94-4687-8313-055d17f42b7e"; }];
|
2021-11-21 19:07:12 +01:00
|
|
|
|
|
|
|
# high-resolution display
|
2023-03-21 17:23:32 +01:00
|
|
|
# hardware.video.hidpi.enable = lib.mkDefault true;
|
2022-10-13 14:14:30 +02:00
|
|
|
|
2023-01-31 17:13:02 +01:00
|
|
|
# Enable firmware
|
2022-10-13 14:14:30 +02:00
|
|
|
hardware.enableAllFirmware = true;
|
2023-01-31 17:13:02 +01:00
|
|
|
|
|
|
|
# i2c support
|
|
|
|
hardware.i2c.enable = true;
|
2021-11-21 19:07:12 +01:00
|
|
|
}
|