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:
parent
c28d3ce2ce
commit
ac840a44b4
1 changed files with 5 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue