summaryrefslogtreecommitdiffstats
path: root/lenovo
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2017-09-06 10:01:01 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2017-09-06 10:01:01 +0200
commit356ebeaaf77f2019c0c5d6756ec8ded4cabd1353 (patch)
treee9c9dfdebab359ecfbefebe17dde3edd6f6befd0 /lenovo
parent0116223524393e40518c62e5616bf918d9338bd7 (diff)
Introduce `general-intel.nix` for defaults with Intel CPU
The x1xx series relies on a AMD CPU, but all other (currently supported) ThinkPads use an Intel CPU, so `general-intel.nix` is responsible for all Intel defaults.
Diffstat (limited to 'lenovo')
-rw-r--r--lenovo/thinkpad/general-intel.nix6
-rw-r--r--lenovo/thinkpad/t410.nix2
-rw-r--r--lenovo/thinkpad/t440p.nix4
-rw-r--r--lenovo/thinkpad/t460s.nix2
-rw-r--r--lenovo/thinkpad/x220i-tablet.nix2
-rw-r--r--lenovo/thinkpad/x250.nix5
6 files changed, 12 insertions, 9 deletions
diff --git a/lenovo/thinkpad/general-intel.nix b/lenovo/thinkpad/general-intel.nix
new file mode 100644
index 0000000..5aeec18
--- /dev/null
+++ b/lenovo/thinkpad/general-intel.nix
@@ -0,0 +1,6 @@
+{ ... }:
+
+{
+ boot.kernelModules = mkDefault [ "kvm-intel" ];
+ services.xserver.videoDrivers = [ "intel" ];
+}
diff --git a/lenovo/thinkpad/t410.nix b/lenovo/thinkpad/t410.nix
index 56e49cb..5737cc6 100644
--- a/lenovo/thinkpad/t410.nix
+++ b/lenovo/thinkpad/t410.nix
@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
- imports = [ ./general.nix ];
+ imports = [ ./general-intel.nix ];
boot = {
kernelParams = [
diff --git a/lenovo/thinkpad/t440p.nix b/lenovo/thinkpad/t440p.nix
index af4e764..4d96bbb 100644
--- a/lenovo/thinkpad/t440p.nix
+++ b/lenovo/thinkpad/t440p.nix
@@ -1,12 +1,12 @@
{ config, pkgs, ... }:
{
- imports = [ ./general.nix ];
+ imports = [ ./general-intel.nix ];
boot = {
extraModprobeConfig = ''
options bbswitch use_acpi_to_detect_card_state=1
'';
- kernelModules = [ "kvm-intel" "tpm-rng" ];
+ kernelModules = [ "tpm-rng" ];
};
}
diff --git a/lenovo/thinkpad/t460s.nix b/lenovo/thinkpad/t460s.nix
index a274b37..d6f2ba3 100644
--- a/lenovo/thinkpad/t460s.nix
+++ b/lenovo/thinkpad/t460s.nix
@@ -3,7 +3,7 @@
{
imports =
[ ../lib/kernel-version.nix
- ./general.nix
+ ./general-intel.nix
];
## BEGIN from generated hardware-configuration
diff --git a/lenovo/thinkpad/x220i-tablet.nix b/lenovo/thinkpad/x220i-tablet.nix
index 3c729ba..65a4a3d 100644
--- a/lenovo/thinkpad/x220i-tablet.nix
+++ b/lenovo/thinkpad/x220i-tablet.nix
@@ -1,7 +1,7 @@
{ config, pkgs, ... }:
{
- imports = [ ./general.nix ];
+ imports = [ ./general-intel.nix ];
# TPM chip countains a RNG
security.rngd.enable = true;
diff --git a/lenovo/thinkpad/x250.nix b/lenovo/thinkpad/x250.nix
index 8ab1aa5..200327f 100644
--- a/lenovo/thinkpad/x250.nix
+++ b/lenovo/thinkpad/x250.nix
@@ -1,8 +1,5 @@
{ config, pkgs, ... }:
{
- imports = [ ./general.nix ];
-
- # modesetting driver leads to freezes with newer kernel at the moment (> 4.4)
- services.xserver.videoDrivers = [ "intel" ];
+ imports = [ ./general-intel.nix ];
}