From 105d9051dd74374b3ded8b22a43713841293f741 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 16 Jan 2017 17:26:06 +0100 Subject: l 2 hw tp-x220: disable acpi backlight handling --- lass/2configs/hw/tp-x220.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'lass/2configs/hw') diff --git a/lass/2configs/hw/tp-x220.nix b/lass/2configs/hw/tp-x220.nix index 4a7d0bbcd..44b2dcac1 100644 --- a/lass/2configs/hw/tp-x220.nix +++ b/lass/2configs/hw/tp-x220.nix @@ -36,6 +36,7 @@ with import ; boot = { kernelModules = [ "kvm-intel" "acpi_call" "tpm-rng" ]; extraModulePackages = [ config.boot.kernelPackages.tp_smapi ]; + kernelParams = [ "acpi_backlight=none" ]; }; hardware.opengl.extraPackages = [ -- cgit v1.3.1 From 261f7f7148acb8197b1296b0809342fe681a6d82 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 22 Jan 2017 18:03:12 +0100 Subject: l 2: add smartd.nix & import in tp-x220 --- lass/2configs/hw/tp-x220.nix | 3 +++ lass/2configs/smartd.nix | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 lass/2configs/smartd.nix (limited to 'lass/2configs/hw') diff --git a/lass/2configs/hw/tp-x220.nix b/lass/2configs/hw/tp-x220.nix index 44b2dcac1..ec36fa96a 100644 --- a/lass/2configs/hw/tp-x220.nix +++ b/lass/2configs/hw/tp-x220.nix @@ -2,6 +2,9 @@ with import ; { + imports = [ + ../smartd.nix + ]; networking.wireless.enable = lib.mkDefault true; hardware.enableAllFirmware = true; diff --git a/lass/2configs/smartd.nix b/lass/2configs/smartd.nix new file mode 100644 index 000000000..859812bed --- /dev/null +++ b/lass/2configs/smartd.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + services.smartd = { + enable = true; + devices = [ + { + device = "DEVICESCAN"; + options = toString [ + "-a" + "-m ${config.krebs.users.lass.mail}" + "-s (O/../.././09|S/../.././04|L/../../6/05)" + ]; + } + ]; + }; +} -- cgit v1.3.1