X2100 updates

This commit is contained in:
Alexander Bantyev 2020-11-10 13:45:36 +03:00
parent 6ae9d7c01e
commit 58eee3651e
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 16 additions and 11 deletions

View File

@ -7,24 +7,25 @@
imports = imports =
[ "${inputs.nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ]; [ "${inputs.nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules =
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/nvme0n1p2"; device = "/dev/disk/by-uuid/e50bd1d6-3613-465e-895a-9dde6ffaad46";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/nvme0n1p1"; device = "/dev/disk/by-uuid/621A-6414";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [ ];
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; hardware.video.hidpi.enable = lib.mkDefault true;
nix.maxJobs = lib.mkDefault 8; nix.maxJobs = lib.mkDefault 8;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";

View File

@ -107,7 +107,11 @@ with deviceSpecific; {
}); });
kernelPackages = pkgs.linuxPackages_latest; kernelPackages = pkgs.linuxPackages_latest;
consoleLogLevel = 3; consoleLogLevel = 3;
extraModprobeConfig = "options ec_sys write_support=1"; extraModprobeConfig = ''
options ec_sys write_support=1
'' + lib.optionalString (device == "X2100-Laptop") ''
options iwlwifi bt_coex_active=0
'';
kernel.sysctl."vm.swappiness" = 0; kernel.sysctl."vm.swappiness" = 0;
kernel.sysctl."kernel/sysrq" = 1; kernel.sysctl."kernel/sysrq" = 1;
kernelParams = [ kernelParams = [