nixos/nsd: Fix indentation/coding style.
For Nix, we indent using two spaces, but in this module somehow 4 spaces were snuck in. Other than that, remoteControl and ratelimit are just nested attribute sets, so we don't need to make another submodule type for no particular reason. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
eac5176529
commit
6386df1645
@ -118,7 +118,6 @@ let
|
|||||||
${forEach " notify: " zone.notify}
|
${forEach " notify: " zone.notify}
|
||||||
notify-retry: ${toString zone.notifyRetry}
|
notify-retry: ${toString zone.notifyRetry}
|
||||||
${forEach " provide-xfr: " zone.provideXFR}
|
${forEach " provide-xfr: " zone.provideXFR}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
zoneConfigs = zoneConfigs' {} "" { children = cfg.zones; };
|
zoneConfigs = zoneConfigs' {} "" { children = cfg.zones; };
|
||||||
@ -145,9 +144,8 @@ let
|
|||||||
|
|
||||||
childConfig = x: v: { options.children = { type = types.attrsOf x; visible = v; }; };
|
childConfig = x: v: { options.children = { type = types.attrsOf x; visible = v; }; };
|
||||||
|
|
||||||
zoneOptionsRaw = types.submodule (
|
zoneOptionsRaw = types.submodule {
|
||||||
{ options, ... }:
|
options = {
|
||||||
{ options = {
|
|
||||||
children = mkOption {
|
children = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
@ -273,10 +271,8 @@ let
|
|||||||
Use imports or pkgs.lib.readFile if you don't want this data in your config file.
|
Use imports or pkgs.lib.readFile if you don't want this data in your config file.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
);
|
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -585,10 +581,8 @@ in
|
|||||||
|
|
||||||
|
|
||||||
keys = mkOption {
|
keys = mkOption {
|
||||||
type = types.attrsOf (types.submodule (
|
type = types.attrsOf (types.submodule {
|
||||||
{ options, ... }:
|
options = {
|
||||||
{ options = {
|
|
||||||
|
|
||||||
algorithm = mkOption {
|
algorithm = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "hmac-sha256";
|
default = "hmac-sha256";
|
||||||
@ -606,11 +600,9 @@ in
|
|||||||
user.
|
user.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
|
||||||
}));
|
|
||||||
default = {
|
|
||||||
};
|
};
|
||||||
|
});
|
||||||
|
default = {};
|
||||||
example = {
|
example = {
|
||||||
"tsig.example.org" = {
|
"tsig.example.org" = {
|
||||||
algorithm = "hmac-md5";
|
algorithm = "hmac-md5";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user