From a1f7f43c95c049628e826856ec589b339cd4f5db Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 6 Aug 2021 18:51:59 +0200 Subject: initial commit --- nixos/hardware-configuration.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 nixos/hardware-configuration.nix (limited to 'nixos/hardware-configuration.nix') diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix new file mode 100644 index 0000000..b308ee1 --- /dev/null +++ b/nixos/hardware-configuration.nix @@ -0,0 +1,33 @@ +{ lib, pkgs, modulesPath, ... }: + +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + boot.initrd.availableKernelModules = + [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/f5809224-8478-474f-b25d-dde1ada37957"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/330B-45DE"; + fsType = "vfat"; + }; + + fileSystems."/home" = { + device = "/dev/disk/by-uuid/8a6efcde-2361-40d5-a341-62188c014618"; + fsType = "ext4"; + }; + + swapDevices = + [{ device = "/dev/disk/by-uuid/0cf1b50c-670c-4dc6-bb91-fc45d6148028"; }]; + + hardware.firmware = with pkgs; [ firmwareLinuxNonfree ]; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + programs.steam.enable = true; +} -- cgit v1.2.3