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 diff --git a/lass/2configs/hw/tp-x220.nix b/lass/2configs/hw/tp-x220.nix index 44b2dcac..ec36fa96 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 00000000..859812be --- /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.2.3