Add laptop hardware config

This commit is contained in:
Kiana Sheibani 2022-01-15 19:55:25 +00:00
parent a77f26b122
commit b3ab35d719
2 changed files with 35 additions and 0 deletions

View file

@ -1,4 +1,8 @@
{ ... }: { ... }:
{ {
imports = [
./hardware-configuration.nix
];
networking.hostName = "kiana-laptop"; networking.hostName = "kiana-laptop";
} }

View file

@ -0,0 +1,31 @@
# 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 = [ ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/c926bae1-6832-4ba9-a3d7-f5da11bfc846";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5008-DA4A";
fsType = "vfat";
};
swapDevices = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
virtualisation.hypervGuest.enable = true;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}