hardware-configuration.nix (1348B)
1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 # and may be overwritten by future invocations. Please make changes 3 # to /etc/nixos/configuration.nix instead. 4 { config, lib, pkgs, ... }: 5 6 { 7 imports = 8 [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> 9 ]; 10 11 boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; 12 boot.kernelModules = [ "kvm-intel" "ledtrig_heartbeat" ]; 13 #boot.kernelParams = [ "intel_pstate=nohwp" ]; 14 boot.extraModulePackages = [ ]; 15 16 boot.loader.grub.enable = true; 17 boot.loader.grub.device = "nodev"; 18 boot.loader.grub.efiSupport = true; 19 boot.loader.efi.canTouchEfiVariables = true; 20 21 boot.initrd.luks.devices = { 22 root = { 23 device = "/dev/disk/by-uuid/ddb70a55-f123-461d-a4c1-a42a393b61fa"; 24 preLVM = false; 25 allowDiscards = true; 26 }; 27 }; 28 29 fileSystems."/" = 30 { device = "/dev/disk/by-uuid/a6670d72-9bdf-4c62-b397-d35c8c1356ef"; 31 fsType = "ext4"; 32 options = [ "noatime" "nodiratime" "discard" ]; 33 }; 34 35 fileSystems."/boot" = 36 { device = "/dev/disk/by-uuid/4F4E-282E"; 37 fsType = "vfat"; 38 }; 39 40 swapDevices = 41 [ { device = "/dev/disk/by-uuid/699fec01-9969-4279-bc7c-8f64252e40b0"; } 42 ]; 43 44 nix.maxJobs = lib.mkDefault 4; 45 powerManagement.cpuFreqGovernor = "powersave"; 46 }