summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-10-31 09:38:45 +0100
committerjeschli <jeschli@gmail.com>2018-10-31 09:38:45 +0100
commitb4c0e0be8b6c6992684dba1c58d3140b7efe8b00 (patch)
treeba1cad08820e6e445ab7f64f4584a1362e7beeaa
parent787eeca9c4ea835793e1b712726d13fd457f8c17 (diff)
parent1c315c576c1112459eed2c96b043cba6d63648e5 (diff)
Merge remote-tracking branch 'origin/master'
-rw-r--r--tv/2configs/hw/x220.nix22
1 files changed, 20 insertions, 2 deletions
diff --git a/tv/2configs/hw/x220.nix b/tv/2configs/hw/x220.nix
index e0a04e2..38a89cf 100644
--- a/tv/2configs/hw/x220.nix
+++ b/tv/2configs/hw/x220.nix
@@ -1,10 +1,28 @@
-{ pkgs, ... }:
-
+{ config, pkgs, ... }:
{
imports = [
../smartd.nix
+ {
+ boot.extraModulePackages = [
+ config.boot.kernelPackages.acpi_call
+ ];
+
+ boot.kernelModules = [
+ "acpi_call"
+ ];
+
+ environment.systemPackages = [
+ pkgs.tpacpi-bat
+ ];
+ }
];
+ boot.extraModulePackages = [
+ config.boot.kernelPackages.tp_smapi
+ ];
+
+ boot.kernelModules = [ "tp_smapi" ];
+
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;