fix(nixos-1): dedup array config

This commit is contained in:
MDLeom 2020-02-27 17:04:55 +00:00
parent c020a300e1
commit 0e6dd4308d
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 9 additions and 13 deletions

View File

@ -244,19 +244,15 @@ Following is my "configuration.nix". I'll show you how to secure NixOS using has
services.tor = {
enable = false;
enableGeoIP = false;
hiddenServices = {
proxy = {
name = "proxy";
version = 3;
map = [
{
port = "80";
toHost = "[::1]";
toPort = "8080";
}
];
};
};
hiddenServices = [{
name = "proxy";
version = 3;
map = [{
port = "80";
toHost = "[::1]";
toPort = "8080";
}];
}];
extraConfig =
''
ClientUseIPv4 0