diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lass/networking-cloudkrebs.nix | 14 | ||||
-rw-r--r-- | modules/lass/retiolum-cloudkrebs.nix | 21 |
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 ]; +} |