Browse Source

add mucbot container

container/radius
Astro 1 year ago
parent
commit
d2c3751323
3 changed files with 43 additions and 1 deletions
  1. 30
    0
      hosts/storage-ng/mucbot/configuration.nix
  2. 12
    0
      hq.nixops
  3. 1
    1
      secrets

+ 30
- 0
hosts/storage-ng/mucbot/configuration.nix View File

@@ -0,0 +1,30 @@
1
+{ config, pkgs, lib, ... }:
2
+
3
+let
4
+  tiggerGit = builtins.fetchTarball https://github.com/astro/tigger/archive/master.tar.gz;
5
+in
6
+{
7
+  imports =
8
+    [ ../../../lib/lxc-container.nix
9
+      ../../../lib/shared.nix
10
+      "${tiggerGit}/module.nix"
11
+    ];
12
+
13
+  networking.hostName = "mucbot";
14
+  networking.useNetworkd = true;
15
+  networking.defaultGateway = "172.22.99.4";
16
+  networking.useDHCP = lib.mkForce true;
17
+
18
+  services.tigger = {
19
+    enable = true;
20
+    jid = import ../../../secrets/hosts/mucbot/jabber-jid.nix;
21
+    password = import ../../../secrets/hosts/mucbot/jabber-password.nix;
22
+    muc = "c3d2@chat.c3d2.de/Astrobot";
23
+  };
24
+
25
+  # This value determines the NixOS release with which your system is to be
26
+  # compatible, in order to avoid breaking some software such as database
27
+  # servers. You should change this only after NixOS release notes say you
28
+  # should.
29
+  system.stateVersion = "18.09"; # Did you read the comment?
30
+}

+ 12
- 0
hq.nixops View File

@@ -24,4 +24,16 @@
24 24
         storeKeysOnMachine = true;
25 25
       };
26 26
     };
27
+
28
+  "mucbot" =
29
+    { ... }:
30
+    {
31
+      imports = [
32
+        hosts/storage-ng/mucbot/configuration.nix
33
+      ];
34
+      deployment = {
35
+        targetHost = "2a02:8106:208:5201:28db:dff:fe6b:e89a";
36
+        storeKeysOnMachine = true;
37
+      };
38
+    };
27 39
 }

+ 1
- 1
secrets

@@ -1 +1 @@
1
-Subproject commit 57621eb036ccaee2ea1af85b31abe93526fd0e79
1
+Subproject commit ae9bd8f1429a06c819e72266614a382b5bc7cdea

Loading…
Cancel
Save