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

43 lines
1.5 KiB
Nix
Raw Normal View History

# 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.
2024-11-27 12:38:26 +00:00
{ config, lib, modulesPath, ... }:
{
imports =
2024-11-27 12:38:26 +00:00
[
(modulesPath + "/installer/scan/not-detected.nix")
];
2024-10-13 12:11:21 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "uas" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-11-27 12:38:26 +00:00
{
device = "/dev/disk/by-uuid/1257f6f4-52bf-4c9a-aa00-86080ecd044c";
2024-10-13 12:11:21 +00:00
fsType = "btrfs";
};
fileSystems."/boot" =
2024-11-27 12:38:26 +00:00
{
device = "/dev/disk/by-uuid/C182-445E";
fsType = "vfat";
2024-10-13 12:11:21 +00:00
options = [ "fmask=0077" "dmask=0077" ];
};
2024-10-13 12:11:21 +00:00
swapDevices =
2024-11-27 12:38:26 +00:00
[{ device = "/dev/disk/by-uuid/96a0423d-a4c0-4376-9d34-5a99b764010a"; }];
# 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;
# networking.interfaces.enp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}