From 1916df697eeca2d4b187c319ba927875ef62f25e Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 8 Apr 2015 13:30:26 +0200 Subject: add cloudkrebs.nix --- modules/lass/networking-cloudkrebs.nix | 14 ++++++++++++++ modules/lass/retiolum-cloudkrebs.nix | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 modules/lass/networking-cloudkrebs.nix create mode 100644 modules/lass/retiolum-cloudkrebs.nix (limited to 'modules') diff --git a/modules/lass/networking-cloudkrebs.nix b/modules/lass/networking-cloudkrebs.nix new file mode 100644 index 000000000..7982da007 --- /dev/null +++ b/modules/lass/networking-cloudkrebs.nix @@ -0,0 +1,14 @@ +{...}: +{ + networking.hostName = "cloudkrebs"; + networking.interfaces.enp2s1.ip4 = [ + { + address = "104.167.112.39"; + prefixLength = 24; + } + ]; + networking.defaultGateway = "104.167.112.1"; + networking.nameservers = [ + "8.8.8.8" + ]; +} diff --git a/modules/lass/retiolum-cloudkrebs.nix b/modules/lass/retiolum-cloudkrebs.nix new file mode 100644 index 000000000..445907fad --- /dev/null +++ b/modules/lass/retiolum-cloudkrebs.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: + +{ + imports = [ + ./retiolum.nix + ]; + + services.retiolum = { + enable = true; + hosts = ../hosts; + privateKeyFile = "/etc/nixos/secrets/cloudkrebs.retiolum.rsa_key.priv"; + connectTo = [ + "fastpoke" + "gum" + "ire" + ]; + }; + + networking.firewall.allowedTCPPorts = [ 655 ]; + networking.firewall.allowedUDPPorts = [ 655 ]; +} -- cgit v1.2.3