-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardware-configuration.nix
executable file
·44 lines (37 loc) · 1.29 KB
/
hardware-configuration.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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 = [ "dm-snapshot" ];
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-uuid/916437e7-4477-46b4-96d8-066a121a3fdd";
preLVM = true;
};
};
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/8c0341b0-7c9a-4dda-8f27-e2c86908f8dc";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/9459-0502";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/1fc86fd7-6cca-4843-b346-3ee725fccdde"; }];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
services.fstrim.enable = lib.mkDefault true;
}