l 2: add smartd.nix & import in tp-x220

This commit is contained in:
lassulus 2017-01-22 18:03:12 +01:00
parent a5134ea9ec
commit 261f7f7148
2 changed files with 20 additions and 0 deletions

View File

@ -2,6 +2,9 @@
with import <stockholm/lib>;
{
imports = [
../smartd.nix
];
networking.wireless.enable = lib.mkDefault true;
hardware.enableAllFirmware = true;

17
lass/2configs/smartd.nix Normal file
View File

@ -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)"
];
}
];
};
}