summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorŁukasz Niemier <lukasz@niemier.pl>2020-04-28 22:43:13 +0200
committerŁukasz Niemier <lukasz@niemier.pl>2020-04-28 22:43:13 +0200
commit784b688dd92ae303dadee69e2063cfb7c4a29d9c (patch)
tree52fe436de7a2400a2200b2579a33040b1b7bd5e0 /modules
parent43b7a6901b52a0162c1c8ef16db70c772b9ddc51 (diff)
docs: add example
Diffstat (limited to 'modules')
-rw-r--r--modules/services/dnsmasq.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/services/dnsmasq.nix b/modules/services/dnsmasq.nix
index b7676f2..9a8cf11 100644
--- a/modules/services/dnsmasq.nix
+++ b/modules/services/dnsmasq.nix
@@ -37,7 +37,10 @@ in
services.dnsmasq.addresses = mkOption {
type = types.attrs;
default = {};
- description = "List of domains that will be redirected by the DNSmasq";
+ description = "List of domains that will be redirected by the DNSmasq.";
+ example = literalExample ''
+ { localhost = "127.0.0.1"; }
+ '';
};
};