it-infra/nixops/juno-hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-06 16:17:28 +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, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2024-06-27 14:20:30 +08:00
boot.initrd.availableKernelModules = [ "ehci_pci" "ata_piix" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
2023-06-06 16:17:28 +08:00
boot.initrd.kernelModules = [ ];
2024-06-27 14:20:30 +08:00
boot.kernelModules = [ "kvm-intel" ];
2023-06-06 16:17:28 +08:00
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/3dca09c8-f725-416a-9f89-b69297698ca9";
fsType = "ext4";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
2024-06-27 14:20:30 +08:00
# networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
2023-06-06 16:17:28 +08:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = true;
2024-06-27 14:20:30 +08:00
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
2023-06-06 16:17:28 +08:00
2023-11-28 18:38:59 +08:00
nixpkgs.config.nvidia.acceptLicense = true;
2023-06-06 16:17:28 +08:00
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.displayManager.gdm.wayland = false;
system.stateVersion = "23.05";
}