diff options
Diffstat (limited to 'acf2/modules')
-rw-r--r-- | acf2/modules/net.lua | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/acf2/modules/net.lua b/acf2/modules/net.lua index de31be9..f0da354 100644 --- a/acf2/modules/net.lua +++ b/acf2/modules/net.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2013 Kaarle Ritvanen +Copyright (c) 2012-2014 Kaarle Ritvanen See LICENSE file for license details --]] @@ -13,12 +13,17 @@ Host.alias = M.Set{ } local Resolv = M.new() -Resolv.servers = M.List{type=M.net.IPAddress, addr='nameserver/#'} -Resolv['search-domains'] = M.List{type=M.String, addr='search/domain/#'} +Resolv.servers = M.List{ + type=M.net.IPAddress, addr='nameserver/#', widget='inline' +} +Resolv['search-domains'] = M.List{ + type=M.String, addr='search/domain/#', widget='inline' +} local Net = M.new() Net['host-name'] = M.String{addr='/augeas/etc/hostname/hostname'} -Net.hosts = M.List{type=Host, addr='/augeas/etc/hosts'} +Net.hosts = M.List{type=Host, addr='/augeas/etc/hosts', layout='tabular'} + Net.resolver = M.Model{ model=Resolv, addr='/augeas/etc/resolv.conf', ui_name='DNS resolver' } |