From 0afbdaa261653e73a4f2f39d7529114989474a64 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Feb 2023 18:12:03 +0100 Subject: factor out common configuration options --- nixos/hardware/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nixos/hardware/default.nix (limited to 'nixos/hardware/default.nix') diff --git a/nixos/hardware/default.nix b/nixos/hardware/default.nix new file mode 100644 index 0000000..0e8dc15 --- /dev/null +++ b/nixos/hardware/default.nix @@ -0,0 +1,26 @@ +{ nixos-hardware, ... }: + +{ + imports = [ # Include the results of the hardware scan. + ./hardware-configuration.nix + + # Community-curated hardware configuration + nixos-hardware.nixosModules.dell-latitude-7490 + nixos-hardware.nixosModules.common-pc-ssd + ]; + + personal.hardware = { + usb.enable = true; + disks.crypted = "/dev/disk/by-uuid/ba5dc9cd-3a73-4a01-880b-8720844307ae"; + firmwareNonFree.enable = true; + keyboard.keyMap = "fr"; + backlights = { + screen = "intel_backlight"; + keyboard = "dell::kbd_backlight"; + }; + sound.enable = true; + }; + + # faulty Intel CPU + boot.kernelParams = [ "i915.dc_enable=0" "intel_idle.max_cstate=1" ]; +} -- cgit v1.2.3