1
0
mirror of https://github.com/kmein/niveum synced 2026-03-29 08:41:07 +02:00

Factor out HU

This commit is contained in:
Kierán Meinhardt
2019-01-08 18:22:54 +01:00
parent 4cc6335050
commit bad15e0c06
7 changed files with 107 additions and 44 deletions

View File

@@ -1,11 +1,8 @@
{ config, pkgs, lib, ... }:
with lib;
let
netname = "retiolum";
cfg = config.networking.retiolum;
in {
options = {
networking.retiolum.ipv4 = mkOption {
@@ -28,7 +25,6 @@ in {
'';
};
};
config = {
services.tinc.networks.${netname} = {
name = cfg.nodename;
@@ -46,7 +42,7 @@ in {
name = "retiolum.hosts";
url = "https://lassul.us/retiolum.hosts";
# FIXME
sha256 = "1jdrbj5bilaaw36s9llnq73bhf8dz5r6c01vx7wl3k1ayvw1mlq9";
sha256 = "0q8f5gw12hf9dhwcs4fni8jrvb2a1g6jskz28qcbd10p2xlkja58";
});
environment.systemPackages = [ config.services.tinc.networks.${netname}.package ];
@@ -60,7 +56,6 @@ in {
networking.firewall.allowedTCPPorts = [ 655 ];
networking.firewall.allowedUDPPorts = [ 655 ];
# services.netdata.portcheck.checks.tinc.port = 655;
systemd.network.enable = true;
systemd.network.networks = {
@@ -73,4 +68,5 @@ in {
'';
};
};
}