nixos/hosts/snowhawk/hardware-configuration.nix

36 lines
1.2 KiB
Nix
Raw Normal View History

2024-02-26 07:33:11 +00:00
{ config, lib, pkgs, modulesPath, ... }:
{
2024-02-28 12:27:51 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-02-26 07:33:11 +00:00
2024-02-27 13:01:32 +00:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
2024-02-26 07:33:11 +00:00
boot.initrd.kernelModules = [ ];
2024-02-27 13:01:32 +00:00
boot.kernelModules = [ "kvm-amd" ];
2024-02-26 07:33:11 +00:00
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-02-28 12:27:51 +00:00
{
device = "/dev/disk/by-uuid/8c377115-06bb-488e-a531-c668dac127f6";
2024-02-26 07:33:11 +00:00
fsType = "ext4";
};
fileSystems."/boot" =
2024-02-28 12:27:51 +00:00
{
device = "/dev/disk/by-uuid/1A0A-CEB2";
2024-02-26 07:33:11 +00:00
fsType = "vfat";
};
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-02-27 13:01:32 +00:00
# networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
2024-02-26 07:33:11 +00:00
2024-02-27 13:01:32 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-02-26 07:33:11 +00:00
}