it-infra/nixops/old-nixbld-hardware-configuration.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-03 17:54:15 +08: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, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
2022-09-27 19:53:23 +08:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ];
2021-09-03 17:54:15 +08:00
boot.initrd.kernelModules = [ ];
2022-09-27 19:53:23 +08:00
boot.kernelModules = [ "kvm-amd" ];
2021-09-03 17:54:15 +08:00
boot.extraModulePackages = [ ];
fileSystems."/" =
2022-09-27 19:53:23 +08:00
{ device = "/dev/disk/by-uuid/69b15848-1cfc-4e3e-91de-1df0d2fc7a80";
2021-09-03 17:54:15 +08:00
fsType = "ext4";
};
fileSystems."/boot" =
2022-09-27 19:53:23 +08:00
{ device = "/dev/disk/by-uuid/D0A3-DDAE";
2021-09-03 17:54:15 +08:00
fsType = "vfat";
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2022-09-27 19:53:23 +08:00
hardware.cpu.amd.updateMicrocode = true;
2021-09-03 17:54:15 +08:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
2021-12-01 20:27:54 +08:00
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
2021-09-03 17:54:15 +08:00
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.displayManager.gdm.wayland = false;
2021-10-31 16:09:08 +08:00
2022-09-27 19:53:23 +08:00
system.stateVersion = "22.05";
2021-09-03 17:54:15 +08:00
}