summaryrefslogtreecommitdiffstats
path: root/lass/2configs/smartd.nix
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/smartd.nix
parenta5134ea9ec5c0ac67761141c4f3ecd871ac3e9ad (diff)
l 2: add smartd.nix & import in tp-x220
Diffstat (limited to 'lass/2configs/smartd.nix')
-rw-r--r--lass/2configs/smartd.nix17
1 files changed, 17 insertions, 0 deletions
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)"
+ ];
+ }
+ ];
+ };
+}