From b3ab35d719fa42cf1cb3fe2032866ffa2a61b184 Mon Sep 17 00:00:00 2001 From: kiana-S Date: Sat, 15 Jan 2022 19:55:25 +0000 Subject: [PATCH] Add laptop hardware config --- laptop/config/default.nix | 4 +++ laptop/config/hardware-configuration.nix | 31 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 laptop/config/hardware-configuration.nix diff --git a/laptop/config/default.nix b/laptop/config/default.nix index e20bc66..63ddc21 100644 --- a/laptop/config/default.nix +++ b/laptop/config/default.nix @@ -1,4 +1,8 @@ { ... }: { + imports = [ + ./hardware-configuration.nix + ]; + networking.hostName = "kiana-laptop"; } diff --git a/laptop/config/hardware-configuration.nix b/laptop/config/hardware-configuration.nix new file mode 100644 index 0000000..7e03bad --- /dev/null +++ b/laptop/config/hardware-configuration.nix @@ -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; +}