nixos/smartd: Refactor to use config.networking.fqdnOrHostName

This commit is contained in:
Robert Hensing 2022-10-06 16:22:05 +02:00
parent fec3f62d38
commit 185f12d96f

View File

@ -4,8 +4,7 @@ with lib;
let
host = config.networking.hostName or "unknown"
+ optionalString (config.networking.domain != null) ".${config.networking.domain}";
host = config.networking.fqdnOrHostName;
cfg = config.services.smartd;
opt = options.services.smartd;