diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2026-12-05 12:27:31 -0600 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2026-12-05 12:27:31 -0600 |
| commit | 6684177e36e5d9dff0a436e9878a265428505196 (patch) | |
| tree | e8d36f5cf2f6f4e3ca86506dbe2888fa9472cd19 /nix/lenovo-base/hardware-configuration.nix | |
| parent | 2083c90eb7a1e086e2db76ad5f3ceaa4d167b8a2 (diff) | |
Diffstat (limited to 'nix/lenovo-base/hardware-configuration.nix')
| -rw-r--r-- | nix/lenovo-base/hardware-configuration.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nix/lenovo-base/hardware-configuration.nix b/nix/lenovo-base/hardware-configuration.nix new file mode 100644 index 0000000..a3d96a8 --- /dev/null +++ b/nix/lenovo-base/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/luks-f1b9890c-eaf0-4032-a57d-206757187dc4"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-f1b9890c-eaf0-4032-a57d-206757187dc4".device = "/dev/disk/by-uuid/f1b9890c-eaf0-4032-a57d-206757187dc4"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9901-D4A1"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
