dotfiles/physical/xps9360.nix

46 lines
1 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2020-05-21 17:39:38 +02:00
let sources = import ../nix/sources.nix;
in
{
2018-02-27 16:31:16 +01:00
imports = [
2020-05-21 17:39:38 +02:00
"${sources.nixos-hardware}/dell/xps/13-9360"
./xps9360-hardware-config.nix
2018-02-27 16:31:16 +01:00
];
2017-02-02 16:31:19 +01:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2020-05-21 17:39:38 +02:00
boot.kernelModules = [ "i8k" ];
boot.extraModprobeConfig = ''
options i8k ignore_dmi=1
'';
fileSystems."/".options = ["defaults" "relatime" "discard"];
boot.initrd.luks.devices."nix-crypt".allowDiscards = true;
2017-02-02 16:31:19 +01:00
2020-05-21 17:39:38 +02:00
services.undervolt = rec {
enable = true;
coreOffset = "-50";
gpuOffset = "-50";
uncoreOffset = "-50";
analogioOffset = "-50";
};
services.tlp.extraConfig = ''
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
'';
services.xserver.libinput.enable = true;
2020-05-21 17:39:38 +02:00
networking.wireless = {
enable = false;
iwd.enable = true;
};
hardware.bluetooth.enable = true;
2020-05-21 17:39:38 +02:00
services.udev.packages = [ pkgs.crda ];
hardware.firmware = [ pkgs.wireless-regdb ];
# gotta go faster
networking.dhcpcd.extraConfig = ''
noarp
'';
}