summaryrefslogtreecommitdiff
path: root/nixos/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/hardware')
-rw-r--r--nixos/hardware/default.nix9
-rw-r--r--nixos/hardware/hardware-configuration.nix23
2 files changed, 16 insertions, 16 deletions
diff --git a/nixos/hardware/default.nix b/nixos/hardware/default.nix
index 0e8dc15..0405ff4 100644
--- a/nixos/hardware/default.nix
+++ b/nixos/hardware/default.nix
@@ -1,7 +1,6 @@
-{ nixos-hardware, ... }:
-
-{
- imports = [ # Include the results of the hardware scan.
+{nixos-hardware, ...}: {
+ imports = [
+ # Include the results of the hardware scan.
./hardware-configuration.nix
# Community-curated hardware configuration
@@ -22,5 +21,5 @@
};
# faulty Intel CPU
- boot.kernelParams = [ "i915.dc_enable=0" "intel_idle.max_cstate=1" ];
+ boot.kernelParams = ["i915.dc_enable=0" "intel_idle.max_cstate=1"];
}
diff --git a/nixos/hardware/hardware-configuration.nix b/nixos/hardware/hardware-configuration.nix
index 77f7942..e876888 100644
--- a/nixos/hardware/hardware-configuration.nix
+++ b/nixos/hardware/hardware-configuration.nix
@@ -1,16 +1,18 @@
# 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") ];
-
- boot.initrd.availableKernelModules =
- [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
- boot.initrd.kernelModules = [ "dm-snapshot" ];
- boot.kernelModules = [ "kvm-intel" ];
- boot.extraModulePackages = [ ];
+ config,
+ lib,
+ modulesPath,
+ ...
+}: {
+ imports = [(modulesPath + "/installer/scan/not-detected.nix")];
+
+ boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc"];
+ boot.initrd.kernelModules = ["dm-snapshot"];
+ boot.kernelModules = ["kvm-intel"];
+ boot.extraModulePackages = [];
fileSystems."/" = {
device = "/dev/disk/by-uuid/f5809224-8478-474f-b25d-dde1ada37957";
@@ -27,8 +29,7 @@
fsType = "ext4";
};
- swapDevices =
- [{ device = "/dev/disk/by-uuid/0cf1b50c-670c-4dc6-bb91-fc45d6148028"; }];
+ swapDevices = [{device = "/dev/disk/by-uuid/0cf1b50c-670c-4dc6-bb91-fc45d6148028";}];
# 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