forked from fi/nix-infra
Add tor-relay config
This commit is contained in:
parent
7fabcb4c7e
commit
682af9276c
5 changed files with 39 additions and 9 deletions
|
|
@ -1,12 +1,23 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./tor.nix
|
||||
];
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
networking = {
|
||||
interfaces = {
|
||||
"enp6s18".ipv6.addresses = [{
|
||||
address = "2001:470:5429::B3";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
};
|
||||
|
||||
defaultGateway6 = {
|
||||
address = "2001:470:5429::1";
|
||||
interface = "enp6s18";
|
||||
};
|
||||
|
||||
hostName = "tor-relay";
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue