summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-22 18:03:12 +0100
committerlassulus <lass@lassul.us>2017-01-22 18:03:12 +0100
commit261f7f7148acb8197b1296b0809342fe681a6d82 (patch)
tree2d1ae5fc0d5340c20cb5521347273c6110c89434 /lass/2configs
parenta5134ea9ec5c0ac67761141c4f3ecd871ac3e9ad (diff)
l 2: add smartd.nix & import in tp-x220
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/hw/tp-x220.nix3
-rw-r--r--lass/2configs/smartd.nix17
2 files changed, 20 insertions, 0 deletions
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 <stockholm/lib>;
{
+ 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)"
+ ];
+ }
+ ];
+ };
+}