summaryrefslogtreecommitdiffstats
path: root/modules/lass
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-04-08 13:30:26 +0200
committertv <tv@shackspace.de>2015-05-19 23:17:19 +0200
commit1916df697eeca2d4b187c319ba927875ef62f25e (patch)
tree92003bae378179e780acd3c0558f00c034980030 /modules/lass
parent70924424419c490279ede9196caf859f96422da8 (diff)
add cloudkrebs.nix
Diffstat (limited to 'modules/lass')
-rw-r--r--modules/lass/networking-cloudkrebs.nix14
-rw-r--r--modules/lass/retiolum-cloudkrebs.nix21
2 files changed, 35 insertions, 0 deletions
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 ];
+}