nixos-config/machines/mimir/hardware-configuration.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2022-11-11 11:54:21 +01:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
2022-11-11 12:51:48 +01:00
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" ];
boot.extraModulePackages = [ ] ++
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
boot.extraModprobeConfig = ''
options amd-pstate shared_mem=true
'';
2022-11-11 11:54:21 +01:00
fileSystems."/" =
{
2022-11-11 12:51:48 +01:00
device = "/dev/disk/by-label/root";
2022-11-11 11:54:21 +01:00
fsType = "ext4";
};
fileSystems."/boot/efi" =
{
2022-11-11 12:51:48 +01:00
device = "/dev/disk/by-label/boot";
2022-11-11 11:54:21 +01:00
fsType = "vfat";
};
fileSystems."/home" =
{
2022-11-11 12:51:48 +01:00
device = "/dev/disk/by-label/home";
2022-11-11 11:54:21 +01:00
fsType = "ext4";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/82969dda-8804-4314-b916-2d4b5db904d5"; }];
2022-11-11 12:51:48 +01:00
powerManagement.cpuFreqGovernor = "ondemand";
hardware = {
video.hidpi.enable = true;
enableAllFirmware = true;
opengl = {
extraPackages = with pkgs; [
vaapiVdpau
];
};
};
2022-11-11 11:54:21 +01:00
2022-11-11 12:51:48 +01:00
services.xserver.videoDrivers = [ "nvidia" ];
2022-11-11 11:54:21 +01:00
}