nicks-nix-config/hosts/desktop/hardware-configuration.nix

40 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-02-26 15:33:30 -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")
];
2023-03-09 19:33:53 -08:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
2023-02-26 15:33:30 -08:00
boot.initrd.kernelModules = [ ];
2023-12-20 17:19:53 -08:00
boot.kernelModules = [ "kvm-amd" "v4l2loopback" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
2023-02-26 15:33:30 -08:00
fileSystems."/" =
2023-03-11 13:22:46 -08:00
{ device = "/dev/disk/by-label/nixos";
2023-02-26 15:33:30 -08:00
fsType = "ext4";
};
fileSystems."/boot" =
2023-03-11 13:22:46 -08:00
{ device = "/dev/disk/by-label/BOOT";
2023-02-26 15:33:30 -08:00
fsType = "vfat";
};
swapDevices =
2023-03-11 13:22:46 -08:00
[ { device = "/dev/disk/by-label/swap"; }
2023-02-26 15:33:30 -08:00
];
# 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;
2023-03-09 19:33:53 -08:00
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
2023-02-26 15:33:30 -08:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}