mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
nixos/smartd: Refactor to use config.networking.fqdnOrHostName
This commit is contained in:
parent
fec3f62d38
commit
185f12d96f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user