summaryrefslogtreecommitdiff
path: root/config/hardware/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'config/hardware/hardware-configuration.nix')
-rw-r--r--config/hardware/hardware-configuration.nix39
1 files changed, 21 insertions, 18 deletions
diff --git a/config/hardware/hardware-configuration.nix b/config/hardware/hardware-configuration.nix
index b752734..e2287cf 100644
--- a/config/hardware/hardware-configuration.nix
+++ b/config/hardware/hardware-configuration.nix
@@ -1,42 +1,45 @@
-# 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,
modulesPath,
...
-}: {
+}:
+
+{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
- boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
- boot.initrd.kernelModules = ["dm-snapshot"];
- boot.kernelModules = ["kvm-intel"];
- boot.extraModulePackages = [];
+ boot.initrd.availableKernelModules = [
+ "xhci_pci"
+ "ahci"
+ "usbhid"
+ "usb_storage"
+ "sd_mod"
+ "rtsx_pci_sdmmc"
+ ];
+ boot.initrd.kernelModules = [ "dm-snapshot" ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
fileSystems."/" = {
- device = "/dev/disk/by-uuid/4fee0db4-0f9b-4b83-9dca-94f4576a1603";
+ device = "/dev/mapper/nixos-root";
fsType = "ext4";
};
fileSystems."/boot" = {
- device = "/dev/disk/by-uuid/ED9D-FCDE";
+ device = "/dev/disk/by-uuid/766A-3450";
fsType = "vfat";
+ options = [
+ "fmask=0022"
+ "dmask=0022"
+ ];
};
swapDevices = [
- {device = "/dev/disk/by-uuid/646b3fd3-a52e-49c3-9ffa-511adca82458";}
+ { device = "/dev/mapper/nixos-swap"; }
];
- # 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.wlp0s20f3.useDHCP = lib.mkDefault true;
-
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}