Nix configurations for my homelab
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

smartd: split into its own module and enable email notifications

yemou.pink 668002fc f8d16d97

verified
+22 -6
+1
lily/config.nix
··· 16 16 ../modules/network-info.nix 17 17 ../modules/nix.nix 18 18 ../modules/remote-builder.nix 19 + ../modules/smartd.nix 19 20 20 21 ../modules/services/caddy 21 22 ../modules/services/caddy/atproto-did.nix
+1
lutea/config.nix
··· 25 25 ../modules/nix.nix 26 26 ../modules/printing.nix 27 27 ../modules/remote-builder.nix 28 + ../modules/smartd.nix 28 29 ../modules/tools.nix 29 30 ]; 30 31
+1 -6
modules/basic.nix
··· 53 53 }; 54 54 55 55 security.polkit.enable = true; 56 - 57 - services = { 58 - acpid.enable = true; 59 - # TODO: Setup email 60 - smartd.enable = true; 61 - }; 56 + services.acpid.enable = true; 62 57 63 58 systemd.network.enable = true; 64 59 networking = {
+19
modules/smartd.nix
··· 1 + { config, ... }: 2 + { 3 + imports = [ ./msmtp.nix ]; 4 + 5 + services.smartd = { 6 + enable = true; 7 + extraOptions = [ "-i 7200" ]; 8 + # defaults.monitored = "-a -M test"; # Used for testing sendmail 9 + notifications = { 10 + wall.enable = false; 11 + x11.enable = false; 12 + mail = { 13 + enable = true; 14 + sender = "host-${config.networking.hostName}@y6d.boo"; 15 + recipient = "diagnostics@mou.pink"; 16 + }; 17 + }; 18 + }; 19 + }