diff options
Diffstat (limited to 'hardware-configuration.nix')
| -rw-r--r-- | hardware-configuration.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..4f35056 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,52 @@ +# 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" "nvme" "usb_storage" "sd_mod" "wl" ]; + kernelModules = [ "wl" ]; + }; + boot.kernelModules = ["kvm-intel" "wl"]; + boot.kernelParams = [ "i8042.nopnp=1" "pci=nocrs" "quiet" "splash" ]; + boot.extraModulePackages = []; + boot.extraModprobeConfig = '' + options snd slots=snd-hda-intel + ''; + + hardware = { + enableAllFirmware = true; + cpu.intel.updateMicrocode = true; + firmware = with pkgs; [ wireless-regdb ]; + }; + + # Bootloader + boot.loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + + # File system + fileSystems = { + "/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; + "/boot" = { + device = "/dev/disk/by-label/boot"; + fsType = "vfat"; + }; + }; + swapDevices = [ { device = "/dev/disk/by-label/swap"; } ]; + + + powerManagement = { + enable = true; + cpuFreqGovernor = lib.mkDefault "powersave"; + }; +} |
