From d9b82ffe014c75be3ef575b01e0cae8f2377f75d Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 22 Oct 2021 00:58:54 -0400 Subject: [PATCH] Infini-FRAMEWORK: add hardware configuration --- hosts/Infini-FRAMEWORK/default.nix | 2 ++ .../hardware-configuration.nix | 33 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 hosts/Infini-FRAMEWORK/hardware-configuration.nix diff --git a/hosts/Infini-FRAMEWORK/default.nix b/hosts/Infini-FRAMEWORK/default.nix index f391412..00fd307 100644 --- a/hosts/Infini-FRAMEWORK/default.nix +++ b/hosts/Infini-FRAMEWORK/default.nix @@ -12,6 +12,8 @@ laptop gpu.intel ]) + + ./hardware-configuration.nix ]) ]; diff --git a/hosts/Infini-FRAMEWORK/hardware-configuration.nix b/hosts/Infini-FRAMEWORK/hardware-configuration.nix new file mode 100644 index 0000000..c56cd12 --- /dev/null +++ b/hosts/Infini-FRAMEWORK/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" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/52cb23b5-0ef3-47d8-8755-b96a127d8d34"; + fsType = "ext4"; + }; + + fileSystems."/boot/efi" = + { device = "/dev/disk/by-uuid/3FC9-0182"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/28672ffb-9f1c-462b-b49d-8a14b3dd72b3"; } + ]; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +}