2016-08-20 23:24:50 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
external-ip = "45.55.145.62";
|
|
|
|
default-gw = "45.55.128.1";
|
|
|
|
prefixLength = 18;
|
|
|
|
in {
|
|
|
|
imports = [
|
2017-07-15 17:01:02 +00:00
|
|
|
<stockholm/makefu>
|
|
|
|
<stockholm/makefu/2configs/hw/CAC.nix>
|
|
|
|
<stockholm/makefu/2configs/save-diskspace.nix>
|
|
|
|
<stockholm/makefu/2configs/torrent.nix>
|
2016-08-20 23:24:50 +00:00
|
|
|
];
|
|
|
|
krebs = {
|
|
|
|
enable = true;
|
|
|
|
tinc.retiolum.enable = true;
|
|
|
|
build.host = config.krebs.hosts.drop;
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "ehci_pci" "virtio_pci" "virtio_blk" "virtio_net" "virtio_scsi" ];
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/vda1";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
allowPing = true;
|
|
|
|
logRefusedConnections = false;
|
|
|
|
allowedTCPPorts = [ ];
|
|
|
|
allowedUDPPorts = [ 655 ];
|
|
|
|
};
|
2018-08-28 22:57:57 +00:00
|
|
|
interfaces.enp0s3.ipv4.addresses = [{
|
2016-08-20 23:24:50 +00:00
|
|
|
address = external-ip;
|
|
|
|
inherit prefixLength;
|
|
|
|
}];
|
|
|
|
defaultGateway = default-gw;
|
|
|
|
nameservers = [ "8.8.8.8" ];
|
|
|
|
};
|
|
|
|
}
|