1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

networking: add warning when networkservices is empty

This commit is contained in:
Daiderd Jordan 2018-01-08 18:45:12 +01:00
parent c28d3ce2ce
commit ac840a44b4
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -64,6 +64,11 @@ in
config = {
warnings = [
(mkIf (cfg.networkservices == [] && cfg.dns != []) "networking.networkservices is empty, dns servers will not be configured.")
(mkIf (cfg.networkservices == [] && cfg.search != []) "networking.networkservices is empty, dns searchdomains will not be configured.")
];
system.defaults.smb.NetBIOSName = cfg.hostName;
system.activationScripts.networking.text = ''